dont forget set the function static

This commit is contained in:
printempw 2016-01-24 14:29:26 +08:00
parent c160370493
commit ba35e2c193

View File

@ -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];
}