[ Warning ]: Invalid argument supplied for foreach()

APPPATH/classes/datasource.php [ 207 ]

202         $searchData['offset'] = 0;
203         
204         $motives = $lib->getSearchResults($searchData);
205         
206         $tmp = array();
207         foreach ($motives['files'] as $ph) {
208             
209             $tmp[] = array(
210                 'motive_id'         => $ph['id'],
211                 'photo_id'          => $ph['id'],
212                 'type'              => 'adobestock',
  1. APPPATH/classes/datasource.php [ 207 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/boxes/creator.php [ 84 ] » DataSource->setSimilar(arguments)

  3. MODPATH/webpage/classes/boxes.php [ 124 ] » Boxes_Creator->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. /index.php [ 84 ] » Kohana_Request->execute()

Environment