ErrorException [ Warning ]: A non-numeric value encountered

MODPATH/categories/classes/model/categories.php [ 512 ]

507 		$tmp = array();
508 		
509 		foreach ($data as $k => $c) {
510 			if (!empty($c['parent'])) {
511 				if (empty($tmp[$c['parent']]['sub'])) {
512 					$tmp[$c['parent']+'']['sub'] = array();
513 				}
514                 
515 				$tmp[$c['parent']]['sub'][$c['cid']]['info'] = $c;
516 				if (!empty($tmp[$c['cid']])) {
517 					$tmp[$c['parent']+'']['sub'][$c['cid']]['sub'] = $tmp[$c['cid']]['sub'];
  1. MODPATH/categories/classes/model/categories.php [ 512 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/boxes/header.php [ 20 ] » Model_Categories::getTree(arguments)

  3. MODPATH/webpage/classes/boxes.php [ 110 ] » Boxes_Header->get()

  4. MODPATH/webpage/classes/controller/webpage.php [ 91 ] » Boxes->getData()

  5. MODPATH/webpage/classes/controller/webpage.php [ 129 ] » Controller_Webpage->parse()

  6. {PHP internal call} » Controller_Webpage->action_index()

  7. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  8. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  9. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  10. MODPATH/webpage/classes/controller/filter.php [ 33 ] » Kohana_Request->execute()

  11. {PHP internal call} » Controller_Filter->before()

  12. SYSPATH/classes/kohana/request/client/internal.php [ 103 ] » ReflectionMethod->invoke(arguments)

  13. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  14. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  15. DOCROOT/index.php [ 111 ] » Kohana_Request->execute()

Environment