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

APPPATH/libraries/MY_Controller_Public.php [ 28 ]

23 		{
24 			// Buscamos los banners en el cache
25 			$lista_banners =  $this->cache->get('banners');
26 			$data['banners_str'] = '';
27 			
28 			foreach($lista_banners as $banners)
29 			{
30 				if(strstr($banners['name'], '_', true) != 'INTRO')
31 				{
32 					$lista_banners[$banners['name']]['data'] = array();//$lista_banners[$banners['name']]['data'];
33 					$data['banners_str'] += "";
  1. APPPATH/libraries/MY_Controller_Public.php [ 28 ] » MY_Exceptions::error_handler(arguments)

  2. APPPATH/controllers/public/encuestas.php [ 77 ] » MY_Controller_Public->_render_template(arguments)

  3. APPPATH/controllers/public/encuestas.php [ 13 ] » Encuestas->_list(arguments)

  4. {PHP internal call} » Encuestas->index()

  5. SYSDIR/codeigniter/CodeIgniter.php [ 236 ] » call_user_func_array(arguments)