From: Marcel Werk Date: Sun, 10 Jul 2016 22:12:34 +0000 (+0200) Subject: Fixed issue in code-tag handling X-Git-Tag: 3.0.0_Beta_1~1202 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4892ae5b3b9018a3e64243b6aa350666f13c8d84;p=GitHub%2FWoltLab%2FWCF.git Fixed issue in code-tag handling --- diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php index 07e9c5060f..24fb747e3d 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php @@ -21,6 +21,9 @@ class CodeMetacodeConverter extends AbstractMetacodeConverter { $highlighter = $file = ''; switch (count($attributes)) { + case 0: + break; + case 1: if (is_numeric($attributes[0])) { $line = intval($attributes[0]);