ErrorException [ Notice ]: Undefined offset: -1

APPPATH/classes/Controller/News.php [ 18 ]

13         'июля','августа','сентября',
14         'октября','ноября','декабря'
15     );
16 
17     $date=date_parse($timestamp);
18     return $date['day'].' '.$months[$date['month']-1].' '.$date['year'];
19 }  
20 
21 	// Выводим новости
22   public function action_index()
23     {
  1. APPPATH/classes/Controller/News.php [ 18 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/News.php [ 42 ] » Controller_News->date2vk(arguments)

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

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

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

Environment