ErrorException [ Warning ]: Invalid argument supplied for foreach()

APPPATH/classes/Filtration.php [ 278 ]

273     private function filter_categories()
274     {
275         if (!empty($this->post['filter_categories'])) {
276             $categories = array();
277             $loaded = false;
278             foreach ($this->post['filter_categories'] as $value) {
279                 $temp = $this->contest->categories->where('id', '=', $value)->find();
280                 if ($temp->loaded()) {
281                     $categories[] = $temp->name;
282                     $loaded = true;
283                 }
  1. APPPATH/classes/Filtration.php [ 278 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Filtration.php [ 234 ] » Filtration->filter_categories()

  3. APPPATH/classes/Filtration.php [ 51 ] » Filtration->load_filters()

  4. APPPATH/classes/Helper/Result.php [ 40 ] » Filtration->load_participants(arguments)

  5. APPPATH/classes/Controller/Export.php [ 408 ] » Helper_Result->__construct(arguments)

  6. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Export->action_trophy()

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

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

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

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

  11. DOCROOT/index.php [ 131 ] » Kohana_Request->execute()

Environment