0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00

remove undefined variable _SERVER[REQUEST_METHOD] when running from the cli

This commit is contained in:
David Goodwin 2018-01-25 19:52:37 +00:00
parent 772a882c74
commit 3593d23c6f

View File

@ -414,7 +414,10 @@ else
<?php
} elseif ($_SERVER['REQUEST_METHOD'] == "GET" || $error != 0 || $lostpw_error == 0) {
} elseif (
(isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == "GET") ||
$error != 0 ||
$lostpw_error == 0 ) {
?>
<div class="standout"><?php print $setupMessage; ?></div>