@@ -427,7 +427,7 @@ public function prepare_common_search_params()
427
427
throw new InvalidParam ('found_by ' , $ e ->whats_wrong_about_it );
428
428
}
429
429
430
- $ internal_user_ids = array_map (create_function ( ' $user ' , ' return $user["internal_id"]; ' ) , $ users );
430
+ $ internal_user_ids = array_map (function ( $ user) { return $ user ["internal_id " ]; } , $ users );
431
431
if (Settings::get ('USE_SQL_SUBQUERIES ' )) {
432
432
$ found_cache_subquery = self ::get_found_cache_ids_subquery ($ internal_user_ids );
433
433
$ where_conds [] = "caches.cache_id in ( " .$ found_cache_subquery .") " ;
@@ -450,7 +450,7 @@ public function prepare_common_search_params()
450
450
throw new InvalidParam ('not_found_by ' , $ e ->whats_wrong_about_it );
451
451
}
452
452
453
- $ internal_user_ids = array_map (create_function ( ' $user ' , ' return $user["internal_id"]; ' ) , $ users );
453
+ $ internal_user_ids = array_map (function ( $ user) { return $ user ["internal_id " ]; } , $ users );
454
454
if (Settings::get ('USE_SQL_SUBQUERIES ' )) {
455
455
$ found_cache_subquery = self ::get_found_cache_ids_subquery ($ internal_user_ids );
456
456
$ where_conds [] = "caches.cache_id not in ( " .$ found_cache_subquery .") " ;
@@ -485,7 +485,7 @@ public function prepare_common_search_params()
485
485
} catch (InvalidParam $ e ) { # too many uuids
486
486
throw new InvalidParam ('not_found_by ' , $ e ->whats_wrong_about_it );
487
487
}
488
- $ internal_user_ids = array_map (create_function ( ' $user ' , ' return $user["internal_id"]; ' ) , $ users );
488
+ $ internal_user_ids = array_map (function ( $ user) { return $ user ["internal_id " ]; } , $ users );
489
489
$ where_conds [] = self ::get_recommended_by_sql ($ internal_user_ids );
490
490
}
491
491
0 commit comments