role administration MDL-20413 up arrow next to top-most role in admin -> users -> permissions -> define roles

This commit is contained in:
Andrew Davis
2009-11-25 06:03:25 +00:00
parent 9452219941
commit 994cc719a6
+2 -1
View File
@@ -221,6 +221,7 @@
/// Print a list of roles with edit/copy/delete/reorder icons.
$table->data = array();
$firstrole = reset($roles);
$lastrole = end($roles);
foreach ($roles as $role) {
@@ -234,7 +235,7 @@
/// Icons:
// move up
if ($role->sortorder != 0) {
if ($role->sortorder != $firstrole->sortorder) {
$row[3] .= get_action_icon($baseurl . '?action=moveup&roleid=' . $role->id . '&sesskey=' . sesskey(), 'up', $strmoveup, $strmoveup);
} else {
$row[3] .= get_spacer();