]> git.mjollnir.org Git - moodle.git/commitdiff
roles admin: Fix notice when creating a role with no legacy type.
authortjhunt <tjhunt>
Wed, 4 Mar 2009 02:46:48 +0000 (02:46 +0000)
committertjhunt <tjhunt>
Wed, 4 Mar 2009 02:46:48 +0000 (02:46 +0000)
admin/roles/lib.php

index 8a9b6090e01d0ea8502326123c69bd15fab86c29..0b8ef62a6978e747df4e2f541ace71ed06295b66 100644 (file)
@@ -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 = '';