]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17816: Minor whitespace fixes before I work on the actual bug
authorsam_marshall <sam_marshall>
Fri, 17 Apr 2009 10:20:44 +0000 (10:20 +0000)
committersam_marshall <sam_marshall>
Fri, 17 Apr 2009 10:20:44 +0000 (10:20 +0000)
course/lib.php

index 03dee3f0be65e8c75df2b73138609ea2a7b4cfee..6c8397d166dd6c3c21e08c9ca7101c43c9100511 100644 (file)
@@ -1527,17 +1527,17 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
 
                 // We may be displaying this just in order to show information
                 // about visibility, without the actual link
-                if($mod->uservisible) {
+                if ($mod->uservisible) {
                     // Display normal module link
-                    if($mod->visible) {
-                        $linkcss='';
-                        $accesstext='';
+                    if ($mod->visible) {
+                        $linkcss = '';
+                        $accesstext  ='';
                     } else {
                         $linkcss = ' class="dimmed" ';
-                        $accesstext='<span class="accesshide">'.
+                        $accesstext = '<span class="accesshide">'.
                             get_string('hiddenfromstudents').': </span>';
                     }
-                        
+
                     echo '<a '.$linkcss.' '.$extra.
                          ' href="'.$CFG->wwwroot.'/mod/'.$mod->modname.'/view.php?id='.$mod->id.'">'.                         
                          '<img src="'.$icon.'" class="activityicon" alt="" /> '.