Fixed PHP warning upon fresh install.

Closes #510
This commit is contained in:
Evert Pot 2016-03-21 17:27:09 -04:00
parent 8e2bc69907
commit 69085ec5f2
2 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,12 @@
ChangeLog
=========
0.4.2 (2016-??-??)
------------------
* #510: Fix PHP warning on fresh install.
0.4.1 (2016-03-17)
------------------

View file

@ -230,7 +230,7 @@ class Framework extends \Flake\Core\Framework {
protected static function initDb() {
# Dont init db on install, but in normal mode and when upgrading
if (defined("BAIKAL_CONTEXT_INSTALL") && (BAIKAL_CONFIGURED_VERSION === BAIKAL_VERSION)) {
if (defined("BAIKAL_CONTEXT_INSTALL") && (!defined('BAIKAL_CONFIGURED_VERSION') || BAIKAL_CONFIGURED_VERSION === BAIKAL_VERSION)) {
return true;
}
if (defined("PROJECT_DB_MYSQL") && PROJECT_DB_MYSQL === true) {