mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Update userclass_class.php
plugin.xml <userClasses /> can NOT add more than one class
This commit is contained in:
@@ -1617,6 +1617,10 @@ class user_class_admin extends user_class
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
//findNewClassID() always returns an unused ID.
|
||||
//if a plugin.xml adds more than one <class ...> within <userClasses..> tag
|
||||
//it will add 1 class only because class_tree never updates itself after adding classes and will return the same unnused ID
|
||||
$this->class_tree[$classrec['userclass_id']] = $classrec;
|
||||
$this->clearCache();
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1956,4 +1960,4 @@ class user_class_admin extends user_class
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user