index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-02-18 20:12:17 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-18 20:12:17 +0100 |
commit | 4c6b074e85d7d8e97b9f125f5fbc2949bc8839dd (patch) | |
tree | b1049ef75f830be56aa5dbba951872d794b11b2a /buildmaster/dependencies.php | |
parent | 4376c50ded25fff8ab6c59c045522091b3eb038b (diff) |
-rw-r--r-- | buildmaster/dependencies.php | 12 |
diff --git a/buildmaster/dependencies.php b/buildmaster/dependencies.php index a8beb5d..c513f2d 100644 --- a/buildmaster/dependencies.php +++ b/buildmaster/dependencies.php @@ -5,7 +5,7 @@ require_once BASE . "/lib/mysql.php"; $match = ""; function dependency_arch_join($name) { - if (isset($_GET["ba_a"])) { + if (array_key_exists("ba_a", $_GET)) { return " JOIN `architecture_compatibilities`" . " ON `architecture_compatibilities`.`fully_compatible`" . @@ -13,7 +13,7 @@ function dependency_arch_join($name) { " JOIN `architectures` AS `ba_a`" . " ON `architecture_compatibilities`.`runs_on`=`ba_a`.`id`" . " AND `ba_a`.`name`=from_base64(\"" . base64_encode($_GET["ba_a"]) . "\")"; - } elseif (isset($_GET["a"])) { + } elseif (array_key_exists("a", $_GET)) { return " JOIN `architecture_compatibilities` AS `ac_1`" . " ON `ac_1`.`fully_compatible`" . @@ -26,13 +26,13 @@ function dependency_arch_join($name) { return ""; } -if (isset($_GET["a"])) +if (array_key_exists("a", $_GET)) $match .= " AND `architectures`.`name`=from_base64(\"" . base64_encode($_GET["a"]) . "\")"; -if (isset($_GET["b"])) +if (array_key_exists("b", $_GET)) $match .= " AND `package_sources`.`pkgbase`=from_base64(\"" . base64_encode($_GET["b"]) . "\")"; -if (isset($_GET["p"])) +if (array_key_exists("p", $_GET)) $match .= " AND `binary_packages`.`pkgname`=from_base64(\"" . base64_encode($_GET["p"]) . "\")"; -if (isset($_GET["r"])) +if (array_key_exists("r", $_GET)) $match .= " AND `repositories`.`name`=from_base64(\"" . base64_encode($_GET["r"]) . "\")"; $ignore_install_targets = " AND NOT `install_targets`.`name` IN (\"base\",\"base-devel\")"; |