From: cash Date: Mon, 14 Mar 2011 11:35:35 +0000 (+0000) Subject: Fixes #3121 array_filter() passes array elements to callback X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8d8ef28e499b5433c6438e88260a39daccc99f62;p=lorea%2Felgg.git Fixes #3121 array_filter() passes array elements to callback git-svn-id: http://code.elgg.org/elgg/trunk@8701 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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;'));