Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-05-23 21:42:44 +0300
committerVitor Mattos <vitor@php.rio>2022-06-30 21:01:27 +0300
commit84bdaaf102d8ca4c2b16a954c717f0d93238a066 (patch)
tree8f89c741bd5172a7a4cbf7d4e545eb1c43b26faf /lib/Chat/ChatManager.php
parent5b6dc78fe6574bd6c52dd00f9c9a9804994f71dc (diff)
Replace count by !empty
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/Chat/ChatManager.php')
-rw-r--r--lib/Chat/ChatManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php
index 294d760c1..fe63f0c31 100644
--- a/lib/Chat/ChatManager.php
+++ b/lib/Chat/ChatManager.php
@@ -706,7 +706,7 @@ class ChatManager {
$min = $this->getMinMessageExpireSeconds($jobId);
$ids = $this->commentsManager->getMessageIdsByRoomIdInDateInterval($roomId, $min, $max);
- if (count($ids)) {
+ if (!empty($ids)) {
$this->reportDeletedMessagesIds($room, $ids);
$this->deleteMessagesByIds($ids);
}