aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/ArrayExt.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Library/ArrayExt.php')
-rwxr-xr-xh-source/Library/ArrayExt.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/h-source/Library/ArrayExt.php b/h-source/Library/ArrayExt.php
index 2b02c9e..d4300b4 100755
--- a/h-source/Library/ArrayExt.php
+++ b/h-source/Library/ArrayExt.php
@@ -2,7 +2,7 @@
// EasyGiant is a PHP framework for creating and managing dynamic content
//
-// Copyright (C) 2009 - 2011 Antonio Gallo
+// Copyright (C) 2009 - 2014 Antonio Gallo (info@laboratoriolibero.com)
// See COPYRIGHT.txt and LICENSE.txt.
//
// This file is part of EasyGiant
@@ -50,7 +50,7 @@ class ArrayExt {
if (!in_array($temp[1],explode(',',Params::$allowedSanitizeFunc))) {
throw new Exception('"'.$temp[1]. '" function not allowed');
}
- if (array_key_exists($temp[0],$associativeArray)) {
+ if (array_key_exists($temp[0],$associativeArray) and !is_array($associativeArray[$temp[0]])) {
$tempArray[$temp[0]] = call_user_func($temp[1],$associativeArray[$temp[0]]);
} else {
$tempArray[$temp[0]] = '';