X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Finstall-inc.php;h=f9ce4811d86f8057fe55d2c55be8cad977485725;hb=feda50ff73c05935417ed33164d30caf966ba854;hp=47f6e86b481c8b1983dd619551e54f77fda37bea;hpb=0cbf3444544a6e3307e8da3af785da677688eba3;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index 47f6e86b48..f9ce4811d8 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -104,7 +104,7 @@ if (isset($_POST['mysql']) && is_array($_POST['mysql'])) $mysql = $_POST['mysql' if (URL != "http://your-server.com") { // Already installed??? $burl = URL; -} elseif ($burl == "") { +} elseif (empty($burl)) { // Auto-detect URL $burl = "http://".$SERVER_NAME.$_SERVER['PHP_SELF']; $burl = substr($burl, 0, strpos($burl, "install.php")); @@ -409,7 +409,7 @@ if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndT } } } - if ((sizeof($FATAL) > 0) || ($FATAL[0] != '')) + if ((sizeof($FATAL) > 0) || ((isset($FATAL[0])) && ($FATAL[0] != ''))) { $OUT = ""; foreach ($FATAL as $value) @@ -479,6 +479,7 @@ if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndT break; default: + DEBUG_LOG(__FILE__, __LINE__, sprintf("Wrong page %s detected.", $_GET['page'])); OUTPUT_HTML(" ".WRONG_PAGE.""); break; }