mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 12:51:52 +02:00
Fix for admin-log of Admin-UI DB-inserts and fix for default userclass value in form element.
This commit is contained in:
@@ -94,6 +94,24 @@ class user_class
|
||||
$this->readTree(TRUE); // Initialise the classes on entry
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Take a key value such as 'member' and return it's numerical value.
|
||||
* @param $text
|
||||
* @return bool
|
||||
*/
|
||||
public function getClassFromKey($text)
|
||||
{
|
||||
if(isset($this->text_class_link[$text]))
|
||||
{
|
||||
return $this->text_class_link[$text];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Return value of isAdmin
|
||||
*/
|
||||
|
Reference in New Issue
Block a user