index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/helper.php | 2 |
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; |