From 8b9f38d7ed16d1112d19741829554e10a886ce91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 17 Feb 2021 11:54:27 +0100 Subject: [PATCH] Return the SystemException's description in extra information only if not empty see 72ae641557703c600de12c07a04346ba16001251 --- .../lib/system/exception/SystemException.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index 63c822b1b8..7e59d13df4 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -59,9 +59,13 @@ class SystemException extends LoggedException implements IExtraInformationExcept */ public function getExtraInformation() { - return [ - ['Description', $this->description], - ]; + if ($this->description) { + return [ + ['Description', $this->description], + ]; + } + + return []; } /** -- 2.20.1