* task#982, common model.

This commit is contained in:
wangchunsheng
2012-12-11 07:00:57 +00:00
parent 3145632e61
commit 3dd8e2b550

View File

@@ -113,8 +113,15 @@ class commonModel extends model
{
foreach($this->config->system->common as $record)
{
if($record->section) $this->config->{$record->section}->{$record->key} = $record->value;
if(!$record->section) $this->config->{$record->key} = $record->value;
if($record->section)
{
if(!isset($this->config->{$record->section})) $this->config->{$record->section} = new stdclass();
$this->config->{$record->section}->{$record->key} = $record->value;
}
else
{
if(!$record->section) $this->config->{$record->key} = $record->value;
}
}
}
}