ErrorException [ Warning ]: sizeof(): Parameter must be an array or an object that implements Countable

APPPATH/classes/Controller/Continent.php [ 42 ]

37 			
38 			$map_zoom												= null;
39 			$map_bounds												= false;
40 			$map_markers											= $continent['countries'];
41 			
42 			if(sizeof($continent['countries']) > 1)
43 			{
44 				
45 			}
46 			else
47 			{
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/Continent.php [ 42 ] » sizeof(arguments)

  3. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Continent->action_detail()

  4. {PHP internal call} » Kohana_Controller->execute()

  5. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)

  6. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  7. SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute(arguments)

  8. DOCROOT/index.php [ 123 ] » Kohana_Request->execute()

Environment