From 59956d6ebfd2b13b72988dcb3a4d19ff00885642 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 18 Sep 2019 14:10:00 +0200 Subject: buildmaster/index.php: show all architectures by default --- buildmaster/index.php | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'buildmaster') diff --git a/buildmaster/index.php b/buildmaster/index.php index 41985ba..e473a68 100644 --- a/buildmaster/index.php +++ b/buildmaster/index.php @@ -2,8 +2,8 @@ require_once "../init.php"; require_once BASE . "/lib/mysql.php"; -if (array_key_exists("arch",$_GET)) { - $archs = array(); +$archs = array(); +if (array_key_exists("arch",$_GET)) foreach (explode("&",$_SERVER["QUERY_STRING"]) as $param) { if (strpos($param,"arch=")!==0) continue; @@ -12,17 +12,13 @@ if (array_key_exists("arch",$_GET)) { continue; $archs[$param] = $param; } - if (count($archs)==0) { - $archs = array( - "i486" => "i486", - "i686" => "i686", - "pentium4" => "pentium4", - "any" => "any" - ); - } -} else { - $archs = array("i686" => "i686", "pentium4" => "pentium4", "any" => "any"); -} +if (count($archs)==0) + $archs = array( + "i486" => "i486", + "i686" => "i686", + "pentium4" => "pentium4", + "any" => "any" + ); function encode_arch($a) { return "arch=" . urlencode($a); -- cgit v1.2.3-70-g09d2