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

APPPATH/views/viaggi_cilento_offerte.php [ 142 ]

137 <div class="message_center_left">
138 <p><?PHP echo I18n::get('testo_cilente_offerte')?></p>
139 
140 
141 <?PHP 
142 if($categoria_selezionata->id_categoria == 12):
143 ?>
144 <hr>
145 <ins class="bookingaff" data-aid="1223368" data-target_aid="834629" data-prod="nsb" data-width="100%" data-height="330">
146 <!-- Anything inside will go away once widget is loaded. -->
147 <a href="//www.booking.com?aid=834629">Booking.com</a>
  1. APPPATH/views/viaggi_cilento_offerte.php [ 142 ] » Kohana_Core::error_handler(arguments)

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

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

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

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

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

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

  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 [ 993 ] » Kohana_Request_Client->execute(arguments)

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

Environment