Browse Source

check if dbType is set, otherwise use mysql

pull/41/head
Aaron Parecki 8 years ago
parent
commit
bd97d362c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/helpers.php

+ 1
- 1
lib/helpers.php View File

@ -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);

Loading…
Cancel
Save