From: Alexander Ebert Date: Tue, 30 Jul 2013 12:28:29 +0000 (+0200) Subject: Improved exception message X-Git-Tag: 2.0.0_Beta_6~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ca57b3a4972a8024a378d86618addaf3a6b0265;p=GitHub%2FWoltLab%2FWCF.git Improved exception message --- diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index 16c5199f67..24b0ee0113 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -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) { }