Browse Source

Merge pull request #67 from PhoenixPeca/patch-1

Fixed some PHP Errors and PHP Warnings
André Peters 8 years ago
parent
commit
07bcf13cee
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data/web/inc/prerequisites.inc.php

+ 2 - 1
data/web/inc/prerequisites.inc.php

@@ -43,6 +43,7 @@ catch (PDOException $e) {
 ?>
 ?>
 <center style='font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;'>🐮 Connection failed, database may be in warm-up state, please try again later.<br /><br />The following error was reported:<br/>  <?=$e->getMessage();?></center>
 <center style='font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;'>🐮 Connection failed, database may be in warm-up state, please try again later.<br /><br />The following error was reported:<br/>  <?=$e->getMessage();?></center>
 <?php
 <?php
+exit;
 }
 }
 
 
 $_SESSION['mailcow_locale'] = strtolower(trim($DEFAULT_LANG));
 $_SESSION['mailcow_locale'] = strtolower(trim($DEFAULT_LANG));
@@ -99,4 +100,4 @@ require_once 'lang/lang.en.php';
 include 'lang/lang.'.$_SESSION['mailcow_locale'].'.php';
 include 'lang/lang.'.$_SESSION['mailcow_locale'].'.php';
 require_once 'inc/functions.inc.php';
 require_once 'inc/functions.inc.php';
 require_once 'inc/triggers.inc.php';
 require_once 'inc/triggers.inc.php';
-(!isset($_SESSION['mailcow_cc_username'])) ? init_db_schema() : null;
+(!isset($_SESSION['mailcow_cc_username'])) ? init_db_schema() : null;