aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-14 11:35:35 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-14 11:35:35 +0000
commit8d8ef28e499b5433c6438e88260a39daccc99f62 (patch)
tree392c7ee9a807e301c79a7d42860cc5ee632a7ca7
parent29c90043277bb919275e9cea3f99393f8d4c9953 (diff)
downloadelgg-8d8ef28e499b5433c6438e88260a39daccc99f62.tar.gz
elgg-8d8ef28e499b5433c6438e88260a39daccc99f62.tar.bz2
Fixes #3121 array_filter() passes array elements to callback
git-svn-id: http://code.elgg.org/elgg/trunk@8701 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
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;'));