diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-12-04 12:33:23 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-12-11 20:15:50 +0300 |
commit | 0aa0dcfd3e78855691513a974e3f7326a197136e (patch) | |
tree | 23433c6e1dd89d084ee590bd55e9fb6a6f948f63 /lib/Manager.php | |
parent | 89f05b44a41648fba6fdf58613dae5f678997d31 (diff) |
Apply suggestions from code review of listable rooms feature
Always join as USER when joining group or public room
Allow nulls for Oracle
Changes after review
Removed populateBaseRoomData and reused the existing code by adding an
extra condition for when querying listable rooms with null participant.
Co-authored-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r-- | lib/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Manager.php b/lib/Manager.php index 538dece0d..48667ced8 100644 --- a/lib/Manager.php +++ b/lib/Manager.php @@ -367,7 +367,7 @@ class Manager { if ($term !== '') { $query->andWhere( - $query->expr()->ilike('name', $query->createNamedParameter( + $query->expr()->iLike('name', $query->createNamedParameter( '%' . $this->db->escapeLikeParameter($term). '%' )) ); |