From c61b0f8f8055e0c9138175cb007819476238dcba Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sun, 18 Sep 2016 15:46:48 +0200 Subject: [PATCH] Fixed an issue with db_connector --- backend/Config.php | 2 +- qrs_config.default.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Config.php b/backend/Config.php index b931241..6f28431 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 836d63c..fa29c93 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'); -- GitLab