From da8303504d0b27f296b2109e13c48f704a85d3f9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 22 Feb 2019 10:37:48 +0100 Subject: lib/helper.php: use array_key_exists() --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/helper.php b/lib/helper.php index 59c9622..29902b7 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -160,7 +160,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = }; function if_unset($array, $index, $default) { - if (isset($array[$index])) + if (array_key_exists($index, $array)) return $array[$index]; else return $default; -- cgit v1.2.3-70-g09d2