* [bug#57442] fix argument type error.

This commit is contained in:
liugang
2024-11-27 14:05:48 +08:00
committed by 朱金勇
parent 5e7db52d83
commit bbb1f8bfc6
+3 -3
View File
@@ -10461,11 +10461,11 @@ class upgradeModel extends model
*/
public function processCacheConfig()
{
$cache = json_decode($this->config->global->cache);
if(!empty($cache->dao->enable))
$cache = $this->loadModel('setting')->getItem('owner=system&module=common&section=global&key=cache');
if($cache == '{"dao":{"enable":"1"}}')
{
$this->loadModel('install')->enableCache();
$this->loadModel('setting')->deleteItems('owner=system&module=common&section=global&key=cache');
$this->setting->deleteItems('owner=system&module=common&section=global&key=cache');
}
}
}