summaryrefslogtreecommitdiff
path: root/buildmaster/build-list-links.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/build-list-links.php
parent4376c50ded25fff8ab6c59c045522091b3eb038b (diff)
downloadarchweb32-4c6b074e85d7d8e97b9f125f5fbc2949bc8839dd.tar.xz
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/build-list-links.php')
-rw-r--r--buildmaster/build-list-links.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/buildmaster/build-list-links.php b/buildmaster/build-list-links.php
index e3d2779..1c64489 100644
--- a/buildmaster/build-list-links.php
+++ b/buildmaster/build-list-links.php
@@ -5,7 +5,7 @@ require_once BASE . "/lib/mysql.php";
$edges = "";
$knots = "";
-if (!isset($_GET["raw"]))
+if (!array_key_exists("raw", $_GET))
$limit = " LIMIT 150";
$query =
@@ -16,7 +16,7 @@ $query =
"UNIQUE KEY `id` (`id`), " .
"KEY `group` (`group`)" .
")";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -31,7 +31,7 @@ $query =
mysql_join_binary_packages_build_assignments() .
" WHERE `repositories`.`name`=\"build-list\"" .
$limit;
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -42,7 +42,7 @@ $query =
"`color` VARCHAR(7), " .
"UNIQUE KEY `id` (`id`)" .
")";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -50,7 +50,7 @@ $query =
"INSERT IGNORE INTO `ba_copy` (`id`,`color`)" .
" SELECT `ba`.`id`,`ba`.`color`" .
" FROM `ba`";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -61,7 +61,7 @@ $query =
"`type` MEDIUMINT, " .
"UNIQUE KEY `content` (`from`,`to`,`type`)" .
")";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -77,7 +77,7 @@ $query =
mysql_join_install_target_providers_binary_packages('','i_bp') .
" JOIN `ba_copy` ON `i_bp`.`build_assignment`=`ba_copy`.`id`" .
" WHERE `d_bp`.`build_assignment`!=`i_bp`.`build_assignment`";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -88,14 +88,14 @@ $query =
"`type` MEDIUMINT, " .
"UNIQUE KEY `content` (`from`,`to`,`type`)" .
")";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
$query =
"INSERT IGNORE INTO `ba_links_copy` (`from`,`to`,`type`)" .
" SELECT `ba_links`.`from`,`ba_links`.`to`,`ba_links`.`type` FROM `ba_links`";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -119,7 +119,7 @@ $query =
" GROUP BY `ba_copy`.`id`" .
") AS `grouped_ba` ON `grouped_ba`.`id`=`ba`.`id`" .
" SET `ba`.`group`=`grouped_ba`.`hash`";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -127,7 +127,7 @@ $query =
"UPDATE `ba_copy`" .
" JOIN `ba` ON `ba`.`id`=`ba_copy`.`id`" .
" SET `ba_copy`.`group`=`ba`.`group`";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
mysql_run_query($query);
@@ -143,7 +143,7 @@ $query =
mysql_join_build_assignments_package_sources() .
mysql_join_build_assignments_architectures() .
" GROUP BY `ba`.`group`";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
$result = mysql_run_query($query);
@@ -167,7 +167,7 @@ $query =
" JOIN `ba` ON `ba_links`.`from`=`ba`.`id`" .
" JOIN `ba_copy` ON `ba_links`.`to`=`ba_copy`.`id`" .
" GROUP BY CONCAT(`ba`.`group`,\"-\",`ba_copy`.`group`)";
-if (isset($_GET["raw"]))
+if (array_key_exists("raw", $_GET))
print $query . ";\n";
$result = mysql_run_query($query);
@@ -200,7 +200,7 @@ while ($row = $result->fetch_assoc()) {
"\"];\n";
}
-if (isset($_GET["raw"])) {
+if (array_key_exists("raw", $_GET)) {
print
"digraph dependencies {\n" .
"rankdir=LR;\n" .