ErrorException [ Notice ]: Undefined index: HTTP_REFERER

APPPATH/classes/controller/index/catalog.php [ 266 ]

261         if(isset($_SERVER['HTTP_X_REQUESTED_WITH'])
262             && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest'){
263             echo json_encode($products);
264             exit;
265         } else {
266             $this->request->redirect($_SERVER['HTTP_REFERER']);
267         }
268 
269     }
270 
271 
  1. APPPATH/classes/controller/index/catalog.php [ 266 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Index_Catalog->action_add(arguments)

  3. SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)

  4. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client_Internal->execute(arguments)

  5. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment