Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster/dependencies.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-18 20:12:17 +0100
committerErich Eckner <git@eckner.net>2019-02-18 20:12:17 +0100
commit4c6b074e85d7d8e97b9f125f5fbc2949bc8839dd (patch)
treeb1049ef75f830be56aa5dbba951872d794b11b2a /buildmaster/dependencies.php
parent4376c50ded25fff8ab6c59c045522091b3eb038b (diff)
buildmaster/build-list-links.php,buildmaster/build-list.php,buildmaster/build-slaves.php,buildmaster/deletion-links.php,buildmaster/dependencies.php,buildmaster/log.php,buildmaster/mysql-issues.php,buildmaster/statistics.php,buildmaster/todos.php,lib/format.php,mirrors/index.php,packages/index.php: isset($_GET[$x]) -> array_key_exists($x, $_GET)
Diffstat (limited to 'buildmaster/dependencies.php')
-rw-r--r--buildmaster/dependencies.php12
1 files changed, 6 insertions, 6 deletions
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\")";