Permalink
Browse files

Merge branch 'w13_MDL-26951_20_archetypes' of git://github.com/skodak…

…/moodle into MOODLE_20_STABLE
  • Loading branch information...
2 parents faa297c + c102060 commit c44c552efa66c0f508dcee80cc463ed88a5ecb35 @stronk7 stronk7 committed Mar 28, 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 c44c552

Please sign in to comment.