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

APPPATH/classes/controller/page.php [ 383 ]

378 
379 		if($link == "home") $this->request->redirect($this->lang."/home");
380 
381 		$page = R::findOne("kategori","slugen=?", array($link));
382 
383 		if(!sizeof($page)) $this->request->redirect("");
384 
385 		if($page->id == 42) $this->view = "tabs";
386 		if($page->id == 135) $this->view = "tabs";
387 
388 		if($page->id == 149) $this->view = "production";
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/controller/page.php [ 383 ] » sizeof(arguments)

  3. APPPATH/classes/controller/page.php [ 98 ] » Controller_Page->stats()

  4. {PHP internal call} » Controller_Page->action_index()

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

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

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

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

Environment