Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/pkginfo.php6
1 files changed, 3 insertions, 3 deletions
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";