1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Correct some keyword fields with the 'tag' form element.

This commit is contained in:
Cameron
2014-01-12 08:05:12 -08:00
parent 7deb681e68
commit 4a9b4c1819
3 changed files with 11 additions and 8 deletions

View File

@@ -1266,9 +1266,12 @@ function check_email($email)
}
//---------------------------------------------------------------------------------------------------------------------------------------------
// $var is a single class number or name, or a comma-separated list of the same.
// If a class is prefixed with '-' this means 'exclude' - returns FALSE if the user is in this class (overrides 'includes').
// Otherwise returns TRUE if the user is in any of the classes listed in $var.
/**
* @param $var is a single class number or name, or a comma-separated list of the same.
* @param $userclass a custom list of userclasses or leave blank for the current user's permissions.
* If a class is prefixed with '-' this means 'exclude' - returns FALSE if the user is in this class (overrides 'includes').
* Otherwise returns TRUE if the user is in any of the classes listed in $var.
*/
function check_class($var, $userclass = USERCLASS_LIST, $uid = 0)
{
$e107 = e107::getInstance();