From 4c6b074e85d7d8e97b9f125f5fbc2949bc8839dd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Feb 2019 20:12:17 +0100 Subject: 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) --- buildmaster/log.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'buildmaster/log.php') diff --git a/buildmaster/log.php b/buildmaster/log.php index f6de94b..371bb86 100644 --- a/buildmaster/log.php +++ b/buildmaster/log.php @@ -4,7 +4,7 @@ require_once BASE . "/lib/mysql.php"; $filter = ""; - if (isset($_GET["show"]) && + if (array_key_exists("show", $_GET) && ($_GET["show"] == "ssh")) { $to_show = "ssh"; $columns = array( @@ -14,9 +14,9 @@ require_once BASE . "/lib/mysql.php"; "parameters" => "`ssh_log`.`parameters`" ); $join = " LEFT" . mysql_join_ssh_log_build_slaves(); - if (isset($_GET["action"])) + if (array_key_exists("action", $_GET)) $filter .= " AND `ssh_log`.`action` LIKE from_base64(\"" . base64_encode($_GET["action"]) . "\")"; - if (isset($_GET["slave"])) + if (array_key_exists("slave", $_GET)) $filter .= " AND `build_slaves`.`name` LIKE from_base64(\"" . base64_encode($_GET["slave"]) . "\")"; } else { $to_show = "email"; @@ -36,7 +36,7 @@ require_once BASE . "/lib/mysql.php"; ") ON `email_log`.`gpg_key`=`gpg_keys`.`id`"; } - if (isset($_GET["from"])) + if (array_key_exists("from", $_GET)) $min_time = $_GET["from"]; elseif ($to_show == "email") $min_time = "1 00:00:00"; -- cgit v1.2.3-70-g09d2