ErrorException [ Notice ]: Trying to get property 'visibile' of non-object

APPPATH/classes/Controller/Home.php [ 170 ]

165 		$id_immobile = $this->request->param('id');
166 		if($id_immobile == NULL)
167 		   throw new Http_Exception_500('Si e\' verificato un errore di navigazione!');
168 		$dati_immobile = ORM::factory('Immobili')->get_immobile_singolo('it', $id_immobile);
169 
170 		if($dati_immobile->visibile == '0') {
171 			$this->redirect(Helper_Redirect::set("/"));
172 		}
173 		
174 		$view->dati_immobile = $dati_immobile;
175 		$view->box_ricerca = View::factory('include/box_ricerca');
  1. APPPATH/classes/Controller/Home.php [ 170 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Home->action_immobile_scheda()

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

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

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

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

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

Environment