From ba35e2c19320e849eb2239080cc0d4cfb2386f66 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 24 Jan 2016 14:29:26 +0800 Subject: [PATCH] dont forget set the function static --- includes/utils.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/utils.class.php b/includes/utils.class.php index b069727b..983cf7b0 100644 --- a/includes/utils.class.php +++ b/includes/utils.class.php @@ -142,7 +142,7 @@ class utils { * @param array $array * @return object */ - function getValue($key, $array) { + public static function getValue($key, $array) { if (array_key_exists($key, $array)) { return $array[$key]; }