Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-10 11:38:11 +0100
committerErich Eckner <git@eckner.net>2018-12-10 11:38:11 +0100
commit44ee11f1cd56869d7706269f529f5bec446d38f8 (patch)
treea9cf2f2013f9bc4fc79a9f718412d892dc638afb /packages
parent551012739b75432a484ff5b245cb39acb8ae21a8 (diff)
packages/pkginfo.php: isset($array[$key]) -> array_key_exists($key, $array)
Diffstat (limited to 'packages')
-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";