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

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

 95 	public function action_haber()
 96 	{	
 97 			$r = explode("-", $this->slug);
 98 			$x = sizeof($r)-1;
 99 			$haber = R::findOne("haberler", "id=? AND visible=?", array($r[$x], 1));
100 			if(sizeof($haber))
101 			{
102 				$currentslug = R::findOne("kategori", "id=?", array($haber->parent));
103 				$this->data->currentslug = $currentslug;
104 				
105 				//$this->data->others = R::find("haberler","parent=? AND id!=?  AND visible=? ORDER BY ordertime DESC, ord ASC limit 4", array($haber->parent, $haber->id, 1));
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

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

  3. {PHP internal call} » Controller_Page->action_haber()

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

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

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

  7. DOCROOT/index.php [ 221 ] » Kohana_Request->execute()

Environment