$updateFields方法BUG,谁贡献的代码啊,一点都不严谨!

浏览:395 发布日期:2016/03/22 分类:求助交流
先看这篇帖子:
http://www.thinkphp.cn/bug/3707.html

问题代码:https://github.com/top-think/thinkphp/commit/352a4e6284211d5390abe653e36de77a33ab4abb

BUG:如果$this->updateFields定义为字符串'name,……',那上面的代码会出问题,array_push出错,就没用了,应该还在上面加一句:if (is_string($fields)) {
                $fields = explode(',', $fields);
            }
大家说对不对?
最佳答案
评论( 相关
后面还有条评论,点击查看>>