roles admin: Fix notice when creating a role with no legacy type.

This commit is contained in:
tjhunt
2009-03-04 02:46:48 +00:00
parent 283fc15670
commit bb0e7937ec
+1 -1
View 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 = '';