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

FCPATH/application/modules/origin/controllers/origin.php [ 88 ]

83 		$DB1->where( 'friendlyURLit', $nome );
84 		$DB1->where( 'online', "si" );
85 		$prodotto=$DB1->get( 'prodotti' )->row();
86 
87 
88 		$DB1->where( 'idProdotto', $prodotto->idProdotto );
89 		$DB1->order_by( 'ordine' );
90 		$foto=$DB1->get( 'prodotti_foto' )->result();
91 
92 		$DB1->where( 'id', $pagina->id_lingua );
93 		$lingua=$DB1->get( 'lingua' )->row();
  1. FCPATH/application/modules/origin/controllers/origin.php [ 88 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » Origin->prodotto(arguments)

  3. FCPATH/system/core/CodeIgniter.php [ 356 ] » call_user_func_array(arguments)

  4. FCPATH/index.php [ 229 ] » require_once(arguments)

Environment

ErrorException [ Warning ]: Invalid argument supplied for foreach()

FCPATH/application/modules/origin/controllers/origin.php [ 96 ]

 91 
 92 		$DB1->where( 'id', $pagina->id_lingua );
 93 		$lingua=$DB1->get( 'lingua' )->row();
 94 
 95 		// Rimuove dal prodotto remove_empty_tags_recursive
 96 		foreach ($prodotto as $key => $value) {
 97 			$prodotto->$key=$this->remove_empty_tags_recursive($value);
 98 		}
 99 
100 		// SISTEMAZIONI COMBO
101 		$options_sistemazione= explode( ',', $lingua->prodotti_prenota_sistemazione ) ;
  1. FCPATH/application/modules/origin/controllers/origin.php [ 96 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » Origin->prodotto(arguments)

  3. FCPATH/system/core/CodeIgniter.php [ 356 ] » call_user_func_array(arguments)

  4. FCPATH/index.php [ 229 ] » require_once(arguments)

Environment