]> git.mjollnir.org Git - moodle.git/commitdiff
proper initialisation of $focus SC#257; merged from MOODLE_16_STABLE
authorskodak <skodak>
Sat, 20 May 2006 18:19:27 +0000 (18:19 +0000)
committerskodak <skodak>
Sat, 20 May 2006 18:19:27 +0000 (18:19 +0000)
course/scales.php

index 7aa07903640d1abd3c8b9a973ee095876c99df8b..79aa316425651f98342b349106a80f450db07b2b 100644 (file)
@@ -43,7 +43,7 @@
     $courses = array();
 
     /// If scale data is being submitted, then save it and continue
-
+    $focus = "";
     $errors = NULL;
 
     if ($action == 'sendform' and confirm_sesskey()) {
         }
 
         //Print out the headers
-        if (!isset($focus)) {
-            $focus = "";
-        }
         print_header("$course->shortname: $strscales", "$course->fullname",
                  "<a href=\"view.php?id=$course->id\">$course->shortname</a>".
                  " -> <a href=\"scales.php?id=$course->id\">$strscales</a>".