[ Warning ]: array_merge(): Argument #2 is not an array

APPPATH/classes/datasource.php [ 162 ]

157                 $count = 0;
158 				
159 				foreach (array_chunk($idsPage,10) as $phs) {
160                     $tab = $fotolia->getSearchPhotos(null, implode(' ',$phs), null, null, 10, 0);    
161                     $count += $tab['nb_results'];
162                     $result['fotolia'] = array_merge($tab['files'], $result['fotolia']);
163                 }
164                 
165                 $result['page_count'] = ceil(count($ids)/$limit);
166                 
167 				$translates = Model_FotoliaTranslates::getCachedTranslates();
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/datasource.php [ 162 ] » array_merge(arguments)

  3. APPPATH/classes/datasource.php [ 45 ] » DataSource::getPagePhotos(arguments)

  4. APPPATH/classes/boxes/category.php [ 14 ] » DataSource::getPhotos(arguments)

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

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

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

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

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

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

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

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

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

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

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

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

  17. DOCROOT/index.php [ 124 ] » Kohana_Request->execute()

Environment