From c36db2b3b8dce9d47c8c4f3be8be869f307058c5 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sun, 18 Sep 2016 15:49:46 +0200 Subject: [PATCH] Fixed another issue --- backend/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Config.php b/backend/Config.php index 6f28431..4d466df 100644 --- a/backend/Config.php +++ b/backend/Config.php @@ -18,7 +18,7 @@ class Config { } public static function createFromGlobals() { - if (null !== db_connector) + if (defined(db_connector) && 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); -- GitLab