Browse Source

check if dbType is set, otherwise use mysql

pull/41/head
Aaron Parecki 9 years ago
parent
commit
bd97d362c7
  1. 2
      lib/helpers.php

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

Loading…
Cancel
Save