Commit 448d9345d8b335ffd32a8df146cbad864626d179

Authored by kevin_fourie
1 parent 3c2deba6

Merged in from DEV trunk...

KTS-3590
"'Fatal error: Call to undefined method DB_Error' after upgrade when the upgrade wizard is initiated."
Fixed. Errors created when initialising the DB are now caught properly.

Committed by: Megan Watson
Reviewed by: Conrad Vermeulen


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@9128 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 1 deletions
config/dmsDefaults.php
@@ -289,8 +289,9 @@ class KTInit { @@ -289,8 +289,9 @@ class KTInit {
289 function handleInitError($oError) { 289 function handleInitError($oError) {
290 global $checkup; 290 global $checkup;
291 if ($checkup === true) { 291 if ($checkup === true) {
292 - return; 292 + //return;
293 } 293 }
  294 +
294 if (KTUtil::arrayGet($_SERVER, 'REQUEST_METHOD')) { 295 if (KTUtil::arrayGet($_SERVER, 'REQUEST_METHOD')) {
295 require_once(KT_LIB_DIR . '/dispatcher.inc.php'); 296 require_once(KT_LIB_DIR . '/dispatcher.inc.php');
296 $oDispatcher =new KTErrorDispatcher($oError); 297 $oDispatcher =new KTErrorDispatcher($oError);