index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-12-10 11:38:11 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-12-10 11:38:11 +0100 |
commit | 44ee11f1cd56869d7706269f529f5bec446d38f8 (patch) | |
tree | a9cf2f2013f9bc4fc79a9f718412d892dc638afb /packages | |
parent | 551012739b75432a484ff5b245cb39acb8ae21a8 (diff) |
-rw-r--r-- | packages/pkginfo.php | 6 |
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:<br>\n" . "buildmaster[" . $same_key["mysql"] . "] != repositories[" . $same_key["json"] . "]:<br>\n" . @@ -579,7 +579,7 @@ if ($count > 1 || $content["pkgname"] != $content["pkgbase"]) { <?php foreach ($dependencies as $dep) { print " <li>\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 " <font color=\"#ff0000\">not satisfiable dependency: \"" . $dep["install_target"] . $dep["version"] . "\"</font>\n"; |