3.1.2 - 普通 - 未处理
前段时间提交了几个BUG,看官方虽然没有回复是否处理,但是从github上面新下载的从源码上看已经修复了。那现在再提出几个小问题吧!--------------------------------------------------------------------------------
修改TP核心 Library\Think\Db.class.php 第511行左右
$rule = isset($val[$count-1]) ? strtoupper($val[$count-1]) : '');
修改为
$rule = isset($val[$count-1]) ? (is_array($val[$count-1]) ? strtoupper($val[$count-1][0]) : strtoupper($val[$count-1]) ) : '' ;
在组合搜索时发现$val[$count-1]是一个数组,直接使用strtoupper会提示错误,也会导致组合搜索的条件与结果不准确
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
修改TP核心 Library\Think\Storage\Driver\File.class.php 第 99 行左右
return unli
修改为
return file_exists($filename) ? unli
解决删除缓存文件,如果缓存文件不存在导致的NOTIC错误
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
修改TP核心 Library\Think\Model.class.php 第 950行左右
if(false === $data[$auto[0]] ) unset($data[$auto[0]]);
修改为
if(isset($data[$auto[0]]) && false === $data[$auto[0]] ) unset($data[$auto[0]]);
解决在使用自动完成是设置了填充规则为‘ignore’ 时字段为空或不存在就删除字段是因为找不到而报的错误undefined
--------------------------------------------------------------------------------
