1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Merge pull request #1151 from hgz5w/patch-1

Update userclass_class.php
This commit is contained in:
Cameron
2015-07-20 14:08:51 -07:00

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;
}