ErrorException [ Notice ]: Undefined offset: 0

SYSPATH/classes/Components/RestaurantMenu.php [ 397 ]

392      */
393     public function getCategoryBySefName($sefName)
394     {
395         $categoryData = DB::select('*')->from('menuCategories')->where('sefName', '=', $sefName)->execute()->as_array();
396 
397         return $categoryData[0];
398     }
399 
400     /**
401      *
402      * @param type $idCategory
  1. SYSPATH/classes/Components/RestaurantMenu.php [ 397 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/Offers.php [ 56 ] » Components_RestaurantMenu->getCategoryBySefName(arguments)

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

  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 [ 994 ] » Kohana_Request_Client->execute(arguments)

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

Environment