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

APPPATH/views/risultati_ricerca.php [ 129 ]

124 	  $prezzo = $prezzo->prezzo_da;
125  }else
126  {
127 	  $link = 'singolo_materasso';
128 	 $prezzo = ORM::factory('Materassi')->get_prezzo_minimo($item->id_elemento); 
129 	  $prezzo = $prezzo->prezzo;
130 	   //$prezzo = DB::select('materassi_vs_locale.prezzo_da')->from('materassi_vs_locale')->where('materassi_vs_locale.id_locale', '=', $locale)->where('materassi_vs_locale.id_materasso', '=', $item->id_elemento)->as_object()->execute()->current();
131  }
132  
133  
134  $tabella = ucfirst($item->tipo);
  1. APPPATH/views/risultati_ricerca.php [ 129 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  5. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()

  6. APPPATH/classes/Controller/Home.php [ 255 ] » Kohana_Response->body(arguments)

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

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

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

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

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

  12. DOCROOT/index.php [ 117 ] » Kohana_Request->execute()

Environment