From 44ee11f1cd56869d7706269f529f5bec446d38f8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 10 Dec 2018 11:38:11 +0100 Subject: packages/pkginfo.php: isset($array[$key]) -> array_key_exists($key, $array) --- packages/pkginfo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/pkginfo.php b/packages/pkginfo.php index fb1b94f..eac3b09 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -36,7 +36,7 @@ require_once BASE . "/lib/style.php"; true ); - if (!isset($json_content["Name"])) { + if (!array_key_exists('Name', $json_content)) { //throw_http_error(404, "Package Not Found In Sync Database"); unset($json_content); $skip_json_checks = true; @@ -123,7 +123,7 @@ require_once BASE . "/lib/style.php"; foreach ($same_keys as $same_key) if (($mysql_content[$same_key["mysql"]] != $json_content[$same_key["json"]]) && - ((!isset($same_key["suffix_diff"])) || + ((!array_key_exists('suffix_diff', $same_key)) || ($mysql_content[$same_key["mysql"]] != $json_content[$same_key["json"]].$same_key["suffix_diff"]))) die_500("Inconsistency in Database found:
\n" . "buildmaster[" . $same_key["mysql"] . "] != repositories[" . $same_key["json"] . "]:
\n" . @@ -579,7 +579,7 @@ if ($count > 1 || $content["pkgname"] != $content["pkgbase"]) { \n"; - if (!$skip_json_checks && !isset ($dep["json"])) + if (!$skip_json_checks && !array_key_exists ('json', $dep)) print " (in database only)\n"; if (count($dep["deps"]) == 0) { print " not satisfiable dependency: \"" . $dep["install_target"] . $dep["version"] . "\"\n"; -- cgit v1.2.3-70-g09d2