From 1f18ef0a36a89b7445c072a2577c12711c9b804c Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 20 Mar 2024 10:44:21 +0200 Subject: [PATCH] fix total <= 0 returned for get_rows call with given UIDs, stalling refresh of queued push updated in mail app --- api/src/Mail.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 979149f9a5..4c4e3439b3 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -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); }