ErrorException [ Warning ]: Invalid argument supplied for foreach()

APPPATH/classes/newtree.php [ 223 ]

218      * @param mix $root
219      * @param mix $except 除外的结点,用于编辑结点时,上级不能选择自身及子结点
220      */
221     function getList(&$tree, $root = 0, $except = NULL)
222     {
223         foreach ($this->child[$root] as $id)
224         {
225             if ($id == $except)
226             {
227                 continue;
228             }
  1. APPPATH/classes/newtree.php [ 223 ] » Core::error_handler(arguments)

  2. APPPATH/classes/newtree.php [ 286 ] » Newtree->getList(arguments)

  3. APPPATH/classes/model/category.php [ 168 ] » Newtree->getChilds(arguments)

  4. MODPATH/q2a/classes/model/q2a/question.php [ 161 ] » Model_Category->get_category_childs(arguments)

  5. MODPATH/q2a/classes/controller/question.php [ 187 ] » Model_Q2a_Question->get_question_by_category_id(arguments)

  6. MODPATH/q2a/classes/controller/question.php [ 35 ] » Controller_Question->display_category_questions(arguments)

  7. MODPATH/q2a/classes/controller/question.php [ 53 ] » Controller_Question->categorys()

  8. {PHP internal call} » Controller_Question->action_uri(arguments)

  9. SYSPATH/classes/request.php [ 827 ] » ReflectionMethod->invokeArgs(arguments)

  10. APPPATH/bootstrap.php [ 126 ] » Request->execute()

  11. ROOT_PATH/index.php [ 116 ] » require(arguments)

Environment

error