Return the SystemException's description in extra information only if not empty
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 17 Feb 2021 10:54:27 +0000 (11:54 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 17 Feb 2021 10:54:27 +0000 (11:54 +0100)
see 72ae641557703c600de12c07a04346ba16001251

wcfsetup/install/files/lib/system/exception/SystemException.class.php

index 63c822b1b89de3d549a4e02c1096ff8a78d7c8ef..7e59d13df476e0e093de7cce887c1bf8786f7398 100644 (file)
@@ -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 [];
     }
 
     /**