From f6594a06d50f8bb4669a4b3e11da81b5ddf48dba 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 0f32103346..20b10d5be3 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -1512,7 +1512,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); }