do not post configuration form when nothing is selected, fixes #1595

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-02-19 16:09:50 +01:00
parent 5982f86db4
commit e3a594f3e7

View File

@@ -43,9 +43,9 @@ if ($userinfo['change_serversettings'] == '1') {
); );
// get distro from URL param // get distro from URL param
$distribution = isset($_GET['distribution']) ? $_GET['distribution'] : ""; $distribution = (isset($_GET['distribution']) && $_GET['distribution'] != 'choose') ? $_GET['distribution'] : "";
$service = isset($_GET['service']) ? $_GET['service'] : ""; $service = (isset($_GET['service']) && $_GET['service'] != 'choose') ? $_GET['service'] : "";
$daemon = isset($_GET['daemon']) ? $_GET['daemon'] : ""; $daemon = (isset($_GET['daemon']) && $_GET['daemon'] != 'choose') ? $_GET['daemon'] : "";
$distributions_select = ""; $distributions_select = "";
$services_select = ""; $services_select = "";
$daemons_select = ""; $daemons_select = "";