diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Manager.php b/lib/Manager.php index 6f68ab02d..4beb0b47c 100644 --- a/lib/Manager.php +++ b/lib/Manager.php @@ -788,7 +788,8 @@ class Manager { $helper->selectRoomsTable($query); $query->from('talk_rooms', 'r') ->where($query->expr()->eq('r.object_type', $query->createNamedParameter($objectType))) - ->andWhere($query->expr()->eq('r.object_id', $query->createNamedParameter($objectId))); + ->andWhere($query->expr()->eq('r.object_id', $query->createNamedParameter($objectId))) + ->orderBy('r.id'); $result = $query->executeQuery(); $row = $result->fetch(); |