From 1ca57b3a4972a8024a378d86618addaf3a6b0265 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 30 Jul 2013 14:28:29 +0200 Subject: [PATCH] Improved exception message --- .../files/lib/system/exception/SystemException.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { } -- 2.20.1