用户
 找回密码
 入住 CI 中国社区
搜索
查看: 908|回复: 0
收起左侧

[版本 3.x] current 报错的问题,是否是bug

[复制链接]
发表于 2015-12-29 16:09:15 | 显示全部楼层 |阅读模式
$where1 = "state=0 and (e!='未开票' or f='' or ah!='' or ak='')";
   public function updateRow($table,$where,$data){
        $this->db->where($where);
        $this->db->update($table,$data);
        // return current($where);
    }

在CI 3.0.3的版本中,where条件如上,如果加上return current($where);就会报错。经目前项目测试更新会报错,所有查询,因为没有用到current,没有报错。

本版积分规则