1.4版本的文章编辑报错问题
cms-》admin-》document 第233行
$columns = Db::name('cms_column')->where(['model' => $where['model']])->whereOr('model', $info['model'])->order('pid,id')->column('id,name,pid');
由于语法tp的语法改变所有报错
应该改为
$columns = Db::name('cms_column')->where([$where[0]])->whereOr('model', $info['model'])->order('pid,id')->column('id,name,pid');
$columns = Db::name('cms_column')->where(['model' => $where['model']])->whereOr('model', $info['model'])->order('pid,id')->column('id,name,pid');
由于语法tp的语法改变所有报错
应该改为
$columns = Db::name('cms_column')->where([$where[0]])->whereOr('model', $info['model'])->order('pid,id')->column('id,name,pid');
没有找到相关结果
已邀请:
0 个回复