1
0
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:
Cameron
2015-04-14 11:59:46 -07:00
parent 67d62ce723
commit 3102a6cb07
3 changed files with 26 additions and 1 deletions

View File

@@ -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
*/