]> git.mjollnir.org Git - moodle.git/commitdiff
renamed variable so that it doens't get recycled
authortoyomoyo <toyomoyo>
Wed, 23 Aug 2006 08:11:43 +0000 (08:11 +0000)
committertoyomoyo <toyomoyo>
Wed, 23 Aug 2006 08:11:43 +0000 (08:11 +0000)
admin/roles/manage.php

index 044aa62bc909c48fa41425ab336b1b2fe4f7948c..88a89318f99589872fc80160a8644ed2d32b15a9 100755 (executable)
         }
         
         foreach ($roles as $rolex) {
-            $options[$rolex->id] = $rolex->name;
+            $roleoptions[$rolex->id] = $rolex->name;
         }
         
         // prints a form to swap roles
         print ('<form name="rolesform1" action="manage.php" method="post">');
         print ('<div align="center">Select a Role: ');
-        choose_from_menu ($options, 'roleid', $roleid, 'choose', $script='rolesform1.submit()');
+        choose_from_menu ($roleoptions, 'roleid', $roleid, 'choose', $script='rolesform1.submit()');
         print ('</div></form>');
               
         // this is the array holding capabilities of this role sorted till this context