mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
#4299: Wrap more potentially undefined constants
In: * Forums * /e107_admin/menus.php
This commit is contained in:
@@ -1200,8 +1200,12 @@ function check_email($email)
|
||||
* @param int $uid
|
||||
* @return bool
|
||||
*/
|
||||
function check_class($var, $userclass = USERCLASS_LIST, $uid = 0)
|
||||
function check_class($var, $userclass = null, $uid = 0)
|
||||
{
|
||||
if ($userclass === null)
|
||||
{
|
||||
$userclass = defset('USERCLASS_LIST', '0');
|
||||
}
|
||||
$e107 = e107::getInstance();
|
||||
if ($var === e_LANGUAGE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user