fix total <= 0 returned for get_rows call with given UIDs, stalling refresh of queued push updated in mail app

This commit is contained in:
ralf 2024-03-20 10:44:21 +02:00
parent df22d23545
commit 1f18ef0a36

View File

@ -1515,7 +1515,9 @@ class Mail
}
else
{
$sortResult = (is_array($_thisUIDOnly) ? $_thisUIDOnly:(array)$_thisUIDOnly);
$sortResult = (array)$_thisUIDOnly;
// we must return a total: if we return only certain UIDs, the total is the number of UIDs given
$total = count($sortResult);
}