Improved exception message
authorAlexander Ebert <ebert@woltlab.com>
Tue, 30 Jul 2013 12:28:29 +0000 (14:28 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 30 Jul 2013 12:28:29 +0000 (14:28 +0200)
wcfsetup/install/files/lib/system/exception/SystemException.class.php

index 16c5199f67ab02d6e3f525ea2e2432fa8a149bde..24b0ee01139fff48b39be57fbfa1f9211a0cf9d4 100644 (file)
@@ -70,7 +70,9 @@ class SystemException extends LoggedException implements IPrintableException {
                
                $innerMessage = '';
                try {
-                       $innerMessage = WCF::getLanguage()->get('wcf.global.error.exception', true);
+                       if (is_object(WCF::getLanguage())) {
+                               $innerMessage = WCF::getLanguage()->get('wcf.global.error.exception', true);
+                       }
                }
                catch (\Exception $e) { }