Browse Source

Check if the $dbType property isset on the Config class

pull/39/head
Prateek Saxena 8 years ago
parent
commit
ebf06e09d2
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