mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fix for check_class tests.
This commit is contained in:
@@ -1559,7 +1559,11 @@ function check_class($var, $userclass = USERCLASS_LIST, $uid = 0)
|
||||
|
||||
if(e107::isCli())
|
||||
{
|
||||
return true;
|
||||
global $_E107;
|
||||
if(empty($_E107['phpunit']))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if(is_numeric($uid) && $uid > 0)
|
||||
|
Reference in New Issue
Block a user