]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3121 array_filter() passes array elements to callback
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Mar 2011 11:35:35 +0000 (11:35 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 14 Mar 2011 11:35:35 +0000 (11:35 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8701 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 45546a3f0c9d9f4ca434f3e3aa61351a3e75dc58..1e4a1350d858b02ce4420af92700b3e3168a9aaf 100644 (file)
@@ -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;'));