[ Warning ]: Invalid argument supplied for foreach()

APPPATH/classes/datasource.php [ 250 ]

245         $searchData['limit']  = $limit;
246         $searchData['offset'] = $limit*($page-1);
247         $motives = $lib->getSearchResults($searchData);
248         
249         $tmp = array();
250         foreach ($motives['files'] as $ph) {
251             
252             $tmp[] = array(
253                 'motive_id'         => $ph['id'],
254                 'photo_id'          => $ph['id'],
255                 'type'              => 'adobestock',
  1. APPPATH/classes/datasource.php [ 250 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/boxes/category.php [ 31 ] » DataSource->setSearchMotives(arguments)

  3. MODPATH/webpage/classes/boxes.php [ 124 ] » Boxes_Category->get()

  4. MODPATH/webpage/classes/controller/webpage.php [ 119 ] » Boxes->getData()

  5. MODPATH/webpage/classes/controller/webpage.php [ 184 ] » Controller_Webpage->parse()

  6. {PHP internal call} » Controller_Webpage->action_index()

  7. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  8. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

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

  10. MODPATH/webpage/classes/controller/filter.php [ 29 ] » Kohana_Request->execute()

  11. {PHP internal call} » Controller_Filter->before()

  12. SYSPATH/classes/kohana/request/client/internal.php [ 103 ] » ReflectionMethod->invoke(arguments)

  13. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

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

  15. /index.php [ 84 ] » Kohana_Request->execute()

Environment