]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed some tidy warnings.
authormoodler <moodler>
Wed, 12 Apr 2006 06:56:01 +0000 (06:56 +0000)
committermoodler <moodler>
Wed, 12 Apr 2006 06:56:01 +0000 (06:56 +0000)
course/user.php

index 85e2d54eacdd3b97c11c6fe30c7d32888c729d41..f44549f3ddd43fa1122f34b4742cfd5c3f6ceb40 100644 (file)
                                                 echo "<h4>$image $mod->modfullname: ".
                                                      "<a href=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">".
                                                      format_string($instance->name,true)."</a></h4>";
+                                                
+                                                ob_start();
+
                                                 echo "<ul>";
                                                 $user_complete($course, $user, $mod, $instance);
                                                 echo "</ul>";
+
+                                                ob_end_clean();
+                                                $output = ob_get_contents();
+                                                
+                                                if (str_replace(' ', '', $output) != '<ul></ul>') {
+                                                    echo $output;
+                                                }
                                             }
                                             break;
                                         }
     
                             if ($mode == "outline") {
                                 echo "</table>";
-                                print_simple_box_end();
                             }
                             echo '</div>';  // content
                             echo '</div>';  // section