diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-04-21 07:48:59 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-04-21 07:48:59 -0700 |
commit | bd97d362c7702329e453b7c10586900ee06b728e (patch) | |
tree | 4a80f9d1227a1b7c9cafa20362377abf7e4c97c7 | |
parent | 904782f973a12542cacb394e2e1d0827accd995a (diff) |
check if dbType is set, otherwise use mysql
-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); |