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

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

4770 		}
4771 		if ($sesion_game_data) {
4772 			$info = $sesion_game_data;
4773 			foreach ($sesion_game_data as $key => $info) {
4774 				$sesion1 = (is_array($info) && array_key_exists('game_data', $info)) ? json_decode($info['game_data'], 1) : json_decode($info, 1);
4775 				foreach ($sesion1['level_completed'] as $key1 => $infolevel) {
4776 					if ($infolevel == true) {
4777 						$levelComplete++;
4778 					}
4779 				}
4780 			}
  1. APPPATH/classes/model/rules.php [ 4775 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/model/game.php [ 3239 ] » Model_Rules->get_bombaslocas_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