Browse Source

Check if the $dbType property isset on the Config class

pull/39/head
Prateek Saxena 9 years ago
parent
commit
ebf06e09d2
  1. 2
      lib/helpers.php

2
lib/helpers.php

@ -1,6 +1,6 @@
<?php <?php
if(Config::$dbType == 'sqlite') {
if(isset(Config::$dbType) && Config::$dbType == 'sqlite') {
ORM::configure('sqlite:' . Config::$dbFilePath); ORM::configure('sqlite:' . Config::$dbFilePath);
} else { } else {
ORM::configure('mysql:host=' . Config::$dbHost . ';dbname=' . Config::$dbName); ORM::configure('mysql:host=' . Config::$dbHost . ';dbname=' . Config::$dbName);

Loading…
Cancel
Save