登陆

有错误

{:isset($role['rights']) && $role['rights'] && in_array($vo.mid,$role['rights'])?'checked':''}

错误提示:

in_array() expects parameter 2 to be array, string given



# PHP
Debug客栈Debug客栈1096 天前554 次浏览

全部回复(2)我要回复

  • The Count of Monte Cristo

    The Count of Monte Cristo2019-03-04 17:20:00

    是不是cvo或者  json_decode的问题

    回复
    0
  • 劳动者是第一生产力@鑫鑫@

    劳动者是第一生产力@鑫鑫@2018-11-02 16:10:39

    var_dump($role['rights'])看下 是字符串还是数组类型

    回复
    0
  • Debug客栈

    谢谢 已经解决

    Debug客栈 · 2018-11-02 17:14:54
    Debug客栈

    是自己太马虎了

    Debug客栈 · 2018-11-02 17:15:02
  • 取消回复发送