From 8d8ef28e499b5433c6438e88260a39daccc99f62 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 14 Mar 2011 11:35:35 +0000 Subject: Fixes #3121 array_filter() passes array elements to callback git-svn-id: http://code.elgg.org/elgg/trunk@8701 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 45546a3f0..1e4a1350d 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -401,7 +401,7 @@ function elgg_get_loaded_external_files($type, $location) { $items = array_values($CONFIG->externals[$type]); $callback = "return \$v->loaded == true && \$v->location == $location;"; - $items = array_filter($items, create_function('&$v,$k', $callback)); + $items = array_filter($items, create_function('$v', $callback)); if ($items) { usort($items, create_function('$a,$b','return $a->priority >= $b->priority;')); array_walk($items, create_function('&$v,$k', '$v = $v->url;')); -- cgit v1.2.3