Index: branches/RC/core/kernel/db/db_connection.php =================================================================== diff -u -r10494 -r10509 --- branches/RC/core/kernel/db/db_connection.php (.../db_connection.php) (revision 10494) +++ branches/RC/core/kernel/db/db_connection.php (.../db_connection.php) (revision 10509) @@ -117,8 +117,6 @@ */ function kDBConnection($dbType, $errorHandler = '') { - $this->Application =& kApplication::Instance(); - $this->dbType = $dbType; // $this->initMetaFunctions(); if (!$errorHandler) { @@ -129,6 +127,11 @@ } $this->_captureStatistics = defined('DBG_CAPTURE_STATISTICS') && DBG_CAPTURE_STATISTICS && !(defined('ADMIN') && ADMIN); + + if (class_exists('kApplication')) { + // prevents "Fatal Error" on 2nd installation step (when database is empty) + $this->Application =& kApplication::Instance(); + } } /**