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

APPPATH/classes/model/rules.php [ 4638 ]

4633 
4634 		if ($sesion_game_data) {
4635 			$info = $sesion_game_data;
4636 			foreach ($sesion_game_data as $key => $info) {
4637 				$sesion1 = (is_array($info) && array_key_exists('game_data', $info)) ? json_decode($info['game_data'], 1) : json_decode($info, 1);
4638 				foreach ($sesion1['levelProgressList'] as $key1 => $infolevel) {
4639 					if ($infolevel['collected_stars'] == 3) {
4640 						$extra_trophies = $extra_trophies + 5;
4641 					}
4642 				}
4643 			//	$game_data['win_trophys'] = $extra_trophies;
  1. APPPATH/classes/model/rules.php [ 4638 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/model/game.php [ 3038 ] » Model_Rules->get_extratelia_trophies(arguments)

  3. APPPATH/classes/controller/frontend/api.php [ 2861 ] » Model_Game->get_win_trophys(arguments)

  4. {PHP internal call} » Controller_Frontend_Api->action_reevaluacion_sesiones()

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

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

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

  8. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment