diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-28 18:30:38 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-01-28 18:30:38 +0300 |
commit | 0636c2e781dc2727d539c8b89ba85a6238e05993 (patch) | |
tree | 31713a3f858432eb8a05b1ca63bb7f7d9d49cf8b /lib/Room.php | |
parent | 95cfbeeaa4c8c33f0fb4eaa70fe08345cc696893 (diff) |
Prevent duplicate call summaries
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Room.php')
-rw-r--r-- | lib/Room.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Room.php b/lib/Room.php index 6943e69d5..d0a594910 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -705,7 +705,8 @@ class Room { $query->update('talk_rooms') ->set('active_guests', $query->createNamedParameter(0)) ->set('active_since', $query->createNamedParameter(null, 'datetime')) - ->where($query->expr()->eq('id', $query->createNamedParameter($this->getId(), IQueryBuilder::PARAM_INT))); + ->where($query->expr()->eq('id', $query->createNamedParameter($this->getId(), IQueryBuilder::PARAM_INT))) + ->andWhere($query->expr()->isNotNull('active_since')); $this->activeGuests = 0; $this->activeSince = null; |