0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-03-14 21:42:52 +00:00

PHP 8.2 - Fix JsonRPCServerUtils.php warning

This commit is contained in:
s.samko 2023-08-16 11:35:36 +01:00 committed by Jack Anderson
parent 232ea23196
commit f6166d3c1b

View file

@ -97,7 +97,8 @@ class JsonRPCServerUtils
if ($table === 'users.') {
$cond_arr[] = $table . "status='Active'";
}
$group = strtolower(trim($query_obj['group']));
$queryObject = $query_obj['group'] ?? '';
$group = strtolower(trim($queryObject));
if ($group !== 'and' && $group !== 'or') {
$group = 'and';
}