* Code for upgrade.

This commit is contained in:
孙广明
2022-02-23 10:49:29 +08:00
parent f70f6c9f6b
commit 2276e1430f
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ class settingModel extends model
$owner = 'system,' . ($account ? $account : '');
$records = $this->dao->select('*')->from(TABLE_CONFIG)
->where('owner')->in($owner)
->andWhere('vision')->in(array('', $this->config->vision))
->beginIF(!defined('IN_UPGRADE'))->andWhere('vision')->in(array('', $this->config->vision))->fi()
->orderBy('id')
->fetchAll('id');
if(!$records) return array();