1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-08-07 17:42:53 +03:00
This commit is contained in:
David Goodwin
2019-02-10 12:12:28 +00:00
parent 28870e4b45
commit a05f87723f
2 changed files with 3 additions and 3 deletions

View File

@@ -1439,7 +1439,7 @@ function db_connect() {
list($link, $_) = db_connect_with_errors();
unset($_);
if(!$link instanceof PDO) {
if (!$link instanceof PDO) {
throw new Exception("Database connection failed");
}

View File

@@ -28,7 +28,7 @@ touch($db_file);
list($db, $error_text) = db_connect_with_errors();
if($db === false) {
if ($db === false) {
echo "failed to connect to database\n";
echo $error_text;
exit(1);