aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/ArrayExt.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2014-09-16 08:03:29 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2014-09-16 08:03:29 +0000
commit11972639df8315753123ebccdadee1f596807ad0 (patch)
tree7c932d7e2f0d66afa55e603960f86cef7b00c5ff /h-source/Library/ArrayExt.php
parent6209923d6cfb2418ee926cccdc62a9383e14bd97 (diff)
Integrated new EasyGiant Library
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]] = '';