Permalink
Browse files

MDL-26951 fix removing of archetype from role

  • Loading branch information...
1 parent 92a387b commit c102060deb7e74d8a2c2cb7409db76cd61f677c7 @skodak skodak committed Mar 27, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 admin/roles/lib.php
View
@@ -628,7 +628,7 @@ public function read_submitted_permissions() {
// Legacy type.
$archetype = optional_param('archetype', null, PARAM_RAW);
- if ($archetype) {
+ if (isset($archetype)) {
$archetypes = get_role_archetypes();
if (isset($archetypes[$archetype])){
$this->role->archetype = $archetype;
@@ -716,7 +716,6 @@ protected function get_description_field($id) {
}
protected function get_archetype_field($id) {
- global $OUTPUT;
$options = array();
$options[''] = get_string('none');
foreach(get_role_archetypes() as $type) {

0 comments on commit c102060

Please sign in to comment.