]> BookStack Code Mirror - bookstack/blobdiff - config/database.php
Finished migration of last angular code
[bookstack] / config / database.php
index 64dc89864e4cb4123e2b5e0b86dad7badee2c71b..3883b58686ae4abb54c26b7dc94578be236e6c6f 100644 (file)
@@ -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]);
 }