* fix the error of setItem().

This commit is contained in:
wangchunsheng
2013-01-10 15:15:10 +00:00
parent 2b773f2013
commit fd6fddc16a

View File

@@ -50,10 +50,10 @@ class settingModel extends model
*/
public function setItem($path, $value = '', $company = 'current')
{
$level = substr_count($keyPath, '.');
$level = substr_count($path, '.');
$section = '';
if($level == 1) return false;
if($level <= 1) return false;
if($level == 2) list($owner, $module, $key) = explode('.', $path);
if($level == 3) list($owner, $module, $section, $key) = explode('.', $path);