model 中where 解析错误导致查询sql错误

浏览:656 发布日期:2015/02/13
3.2.3 - 严重 - 未处理
大概在1792行:[code] if(isset($this->options['where'])){
$this->options['where'] = isset($where)? array_merge($this->options['where'],$where):$this->options['where'];
}else{
if(isset($where)) $this->options['where'] = $where;
}[code]原版代码中$where 变量isset($where)==false, array_merge会将之前设置查询条件都清空,bug严重!
评论(
后面还有条评论,点击查看>>