From 1297b04d41a934d52acd91d406800210dcb653d0 Mon Sep 17 00:00:00 2001 From: Louis <6653109+artonge@users.noreply.github.com> Date: Wed, 15 Sep 2021 18:39:55 +0200 Subject: [PATCH] Use legacy execute method Use legacy execute method instead of executeQuery introduced in 22 Signed-off-by: Louis Chemineau --- lib/private/Comments/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index 93b5ed4cc42..e9761cb4310 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -658,7 +658,7 @@ class Manager implements ICommentsManager { foreach (array_chunk($objectIds, 1000) as $chunk) { $query->setParameter('ids', $chunk, IQueryBuilder::PARAM_INT_ARRAY); - $result = $query->executeQuery(); + $result = $query->execute(); while ($row = $result->fetch()) { $unreadComments[$row['object_id']] = (int) $row['num_comments']; }