ErrorException [ Notice ]: Undefined variable: idList

APPPATH/classes/Model/Product.php [ 794 ]

789 				$idList[] = $value['id'];
790 			}
791 
792 			$images = DB::select('*')
793 					->from($this->_productPhotoTable)
794 					->where('product_id', 'IN', $idList)
795 					->and_where('main', '=', 1)
796 					->execute()->as_array('product_id', 'name');
797 		}
798 		
799 		/*if (isset($result[0])) {
  1. APPPATH/classes/Model/Product.php [ 794 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/Shop.php [ 42 ] » Model_Product->getRubricProducts(arguments)

  3. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Shop->action_rubric()

  4. {PHP internal call} » Kohana_Controller->execute()

  5. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  6. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  7. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

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

Environment