From bb0e7937ecab6746fb68ea14fbc1504051fcb3eb Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 4 Mar 2009 02:46:48 +0000 Subject: [PATCH] roles admin: Fix notice when creating a role with no legacy type. --- admin/roles/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''; -- 2.39.5