]> git.mjollnir.org Git - moodle.git/commitdiff
xhtml fix - misplaced tags
authorskodak <skodak>
Thu, 30 Nov 2006 09:28:06 +0000 (09:28 +0000)
committerskodak <skodak>
Thu, 30 Nov 2006 09:28:06 +0000 (09:28 +0000)
lib/adminlib.php

index 700cae2b5f4895e2c2bc04d5f5c8555f58f10f40..115639dd42174e0671054b9b95b8ef1047f31444 100644 (file)
@@ -2020,8 +2020,8 @@ class admin_setting_special_editorhidebuttons extends admin_setting {
         $count = 0;
 
         foreach($this->items as $key => $value) {
-            if ($count % 15 == 0) {
-                $return .= '</div></td><td valign="top" align="right">';
+            if ($count % 15 == 0 and $count != 0) {
+                $return .= '</td><td valign="top" align="right">';
             }
 
             $return .= ($value == '' ? get_string($key,'editor') : '<img width="18" height="18" src="' . $CFG->wwwroot . '/lib/editor/htmlarea/images/' . $value . '" alt="' . get_string($key,'editor') . '" title="' . get_string($key,'editor') . '" />') . '&nbsp;';