1
0
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:
hgz5w
2015-07-20 16:55:01 -03:00
parent 0ffc92cde4
commit 38e82e92e5

View File

@@ -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
?>
?>