diff --git a/trunk/module/setting/model.php b/trunk/module/setting/model.php index 63e35ec95f..6a71804f66 100644 --- a/trunk/module/setting/model.php +++ b/trunk/module/setting/model.php @@ -67,14 +67,7 @@ class settingModel extends model ->andWhere('section')->eq('global') ->andWhere('`key`')->eq('sn') ->fetch('id', $autoComapny = false); - if($configID > 0) - { - $this->dao->update(TABLE_CONFIG)->data($item)->where('id')->eq($configID)->exec($autoCompany = false); - } - else - { - $this->dao->insert(TABLE_CONFIG)->data($item)->exec($autoCompany = false); - } + if(!$configID) $this->dao->insert(TABLE_CONFIG)->data($item)->exec($autoCompany = false); } /* 更新PMS的版本设置。*/