mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-05 19:45:43 +08:00
配置读取优
This commit is contained in:
@ -3378,7 +3378,7 @@ function MyC($key, $default = '', $mandatory = false)
|
||||
return $default;
|
||||
}
|
||||
// 2. 未设置则默认值
|
||||
if($mandatory === true && $cache_config_data[$key] === null)
|
||||
if($mandatory === true && ($cache_config_data[$key] === null || $cache_config_data[$key] === ''))
|
||||
{
|
||||
return $default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user