MDL-24954 fixed inverted guest icons
authorPetr Skoda <skodak@moodle.org>
Mon, 1 Nov 2010 07:31:54 +0000 (07:31 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 1 Nov 2010 07:31:54 +0000 (07:31 +0000)
enrol/guest/lib.php

index 8a32e10..f31a468 100644 (file)
@@ -46,9 +46,9 @@ class enrol_guest_plugin extends enrol_plugin {
     public function get_info_icons(array $instances) {
         foreach ($instances as $instance) {
             if ($instance->password) {
-                return array(new pix_icon('withoutpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest'));
-            } else {
                 return array(new pix_icon('withpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest'));
+            } else {
+                return array(new pix_icon('withoutpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest'));
             }
         }
     }