diff options
author | Prateek Saxena <prtksxna@gmail.com> | 2016-04-21 20:22:05 +0530 |
---|---|---|
committer | Prateek Saxena <prtksxna@gmail.com> | 2016-04-21 20:22:05 +0530 |
commit | ebf06e09d23aa32d71e97cf91bda7f970538f5dd (patch) | |
tree | da4fd1edd237687402d05551c2381cb37f362482 | |
parent | 76dedd3c22cf1613b9930fa0309793cea20cd1b2 (diff) |
Check if the $dbType property isset on the Config class
-rw-r--r-- | lib/helpers.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers.php b/lib/helpers.php index 3939708..a860dc0 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -1,6 +1,6 @@ <?php -if(Config::$dbType == 'sqlite') { +if(isset(Config::$dbType) && Config::$dbType == 'sqlite') { ORM::configure('sqlite:' . Config::$dbFilePath); } else { ORM::configure('mysql:host=' . Config::$dbHost . ';dbname=' . Config::$dbName); |