X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/005f0eb4fcfc7b3f9239bc094204d9ba65d0145b..refs/pull/524/head:/config/database.php diff --git a/config/database.php b/config/database.php index 64dc89864..3883b5868 100644 --- a/config/database.php +++ b/config/database.php @@ -19,7 +19,7 @@ if (env('REDIS_SERVERS', false)) { $mysql_host = env('DB_HOST', 'localhost'); $mysql_host_exploded = explode(':', $mysql_host); $mysql_port = env('DB_PORT', 3306); -if (count($mysql_host_exploded) > 0) { +if (count($mysql_host_exploded) > 1) { $mysql_host = $mysql_host_exploded[0]; $mysql_port = intval($mysql_host_exploded[1]); }