From: tjhunt Date: Wed, 4 Mar 2009 02:46:48 +0000 (+0000) Subject: roles admin: Fix notice when creating a role with no legacy type. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bb0e7937ecab6746fb68ea14fbc1504051fcb3eb;p=moodle.git roles admin: Fix notice when creating a role with no legacy type. --- diff --git a/admin/roles/lib.php b/admin/roles/lib.php index 8a9b6090e0..0b8ef62a69 100644 --- a/admin/roles/lib.php +++ b/admin/roles/lib.php @@ -585,7 +585,7 @@ class define_role_table_advanced extends capability_table_with_risks { if (!$this->roleid) { // Creating role - if ($this->legacyroles[$this->role->legacytype]) { + if (isset($this->legacyroles[$this->role->legacytype])) { $legacycap = $this->legacyroles[$this->role->legacytype]; } else { $legacycap = '';