mirror of
https://github.com/Combodo/iTop.git
synced 2026-09-29 12:59:13 +02:00
Check if class UserToken exists
This commit is contained in:
@@ -159,8 +159,11 @@ class ITopUserCountingRepository
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function GetApplicationUsers(bool $bAllData = true): array
|
||||
public function GetApplicationUsers(bool $bAllData = true): ?array
|
||||
{
|
||||
if (!MetaModel::IsValidClass('UserToken')) {
|
||||
return null;
|
||||
}
|
||||
$sOQLApplicationUser = 'SELECT UserToken';
|
||||
try {
|
||||
$oFilter = $bAllData ? DBObjectSearch::FromOQL_AllData($sOQLApplicationUser) : DBObjectSearch::FromOQL($sOQLApplicationUser);
|
||||
|
||||
Reference in New Issue
Block a user