]> git.mjollnir.org Git - moodle.git/commitdiff
Just some formatting
authormoodler <moodler>
Sun, 25 Feb 2007 06:58:10 +0000 (06:58 +0000)
committermoodler <moodler>
Sun, 25 Feb 2007 06:58:10 +0000 (06:58 +0000)
user/edit_form.php

index f7d7173225bf065fca01bc04e59ff750f3b0a797..11d80ceb3b48114fa06d5f793d149f50919569a2 100644 (file)
@@ -44,15 +44,15 @@ class user_edit_form extends moodleform {
 
         if ($user = get_record('user', 'id', $userid)) {
 
-        // print picture
-        if (!empty($CFG->gdversion)) {
-            $image_el = $mform->getElement('currentpicture');
-            if ($user and $user->picture) {
-                $image_el->setValue(print_user_picture($user->id, SITEID, $user->picture, 64, true, false, '', true));
-            } else {
-                $image_el->setValue(get_string('none'));
+            // print picture
+            if (!empty($CFG->gdversion)) {
+                $image_el = $mform->getElement('currentpicture');
+                if ($user and $user->picture) {
+                    $image_el->setValue(print_user_picture($user->id, SITEID, $user->picture, 64,true,false,'',true));
+                } else {
+                    $image_el->setValue(get_string('none'));
+                }
             }
-        }
 
             /// disable fields that are locked by auth plugins
             $fields = get_user_fieldnames();