diff --git a/backend/Config.php b/backend/Config.php index b9312412378f022334b0fc022b59df684f52fafd..6f28431ccfe10b43285a67f31acce96dc17249f7 100644 --- a/backend/Config.php +++ b/backend/Config.php @@ -18,7 +18,7 @@ class Config { } public static function createFromGlobals() { - if (isset(db_connector)) + if (null !== db_connector) return new Config(path_prefix, db_connector, db_user, db_pass); else return new Config(path_prefix, 'pgsql:host=' . db_host . ';port=' . db_port . ';dbname=' . db_name . '', db_user, db_pass); diff --git a/qrs_config.default.php b/qrs_config.default.php index 836d63c78ca68c9b20d1928dac3bde44b5f1020f..fa29c937b5a1dfc6424f77f4043fba6f8ef41314 100644 --- a/qrs_config.default.php +++ b/qrs_config.default.php @@ -3,8 +3,8 @@ define('db_host', 'example.com'); define('db_port', 5432); define('db_name', 'quassel'); -//Only use this if you know what you are doing -//define('db_connector', ''); +//Only change this if you know what you are doing +define('db_connector', null); define('db_user', 'quassel'); define('db_pass', 'password');