Fixed issue in code-tag handling
authorMarcel Werk <burntime@woltlab.com>
Sun, 10 Jul 2016 22:12:34 +0000 (00:12 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 10 Jul 2016 22:12:39 +0000 (00:12 +0200)
wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php

index 07e9c5060fc02ccfa6688588b94e2728cf5d59e3..24fb747e3dea038959ce0d384e468951ba99d2d6 100644 (file)
@@ -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]);