ErrorException [ Notice ]: Undefined offset: 0

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

427             foreach($res as $row){
428                 $products[$i]['imgs'][] = $row;
429             }
430         }
431         
432         return $categoryId ? $products : $products[0];
433 	}
434 
435     /**
436      * @param int $categoryId
437      * @return array
  1. APPPATH/classes/Model/Product.php [ 432 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/Item.php [ 12 ] » Model_Product->getCategoryProducts(arguments)

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

  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 [ 119 ] » Kohana_Request->execute()

Environment

Ошибка на странице!