From: Tim Düsterhus Date: Wed, 17 Feb 2021 10:54:27 +0000 (+0100) Subject: Return the SystemException's description in extra information only if not empty X-Git-Tag: 5.4.0_Alpha_1~261 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b9f38d7ed16d1112d19741829554e10a886ce91;p=GitHub%2FWoltLab%2FWCF.git Return the SystemException's description in extra information only if not empty see 72ae641557703c600de12c07a04346ba16001251 --- 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 []; } /**