]> git.mjollnir.org Git - moodle.git/commitdiff
adminlib whitespace fixes
authormoodler <moodler>
Mon, 21 Sep 2009 02:52:34 +0000 (02:52 +0000)
committermoodler <moodler>
Mon, 21 Sep 2009 02:52:34 +0000 (02:52 +0000)
lib/adminlib.php

index b8014159a05c725845c7c6133d1c1dbb13d64c9e..f7c0b297fbc6fc8ca0f261eddc4ee3699f0cff4e 100644 (file)
@@ -1517,16 +1517,16 @@ class admin_setting_configtext extends admin_setting {
             }
 
         } else if ($this->paramtype === PARAM_RAW) {
-                return true;
+            return true;
 
+        } else {
+            $cleaned = clean_param($data, $this->paramtype);
+            if ("$data" == "$cleaned") { // implicit conversion to string is needed to do exact comparison
+                return true;
             } else {
-                $cleaned = clean_param($data, $this->paramtype);
-                if ("$data" == "$cleaned") { // implicit conversion to string is needed to do exact comparison
-                    return true;
-                } else {
-                    return get_string('validateerror', 'admin');
-                }
+                return get_string('validateerror', 'admin');
             }
+        }
     }
 
     /**