1
0
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:
Cameron
2019-03-08 12:10:28 -08:00
parent d05d4f6406
commit 94bdbfa7e2
2 changed files with 10 additions and 5 deletions

View File

@@ -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)