diff --git a/lib/Db/ShareRequestMapper.php b/lib/Db/ShareRequestMapper.php index f43f1294..aa27b090 100644 --- a/lib/Db/ShareRequestMapper.php +++ b/lib/Db/ShareRequestMapper.php @@ -43,7 +43,7 @@ class ShareRequestMapper extends Mapper { * @return ShareRequest[] */ public function getRequestsByItemGuidGroupedByUser($item_guid){ - if (strtolower($this->db->getDatabasePlatform()->getName()) === 'mysql' || strtolower($this->db->getDatabasePlatform()->getName()) == 'pgsql'){ + if (strtolower($this->db->getDatabasePlatform()->getName()) === 'mysql'){ $this->db->executeQuery("SET sql_mode = '';"); } $q = "SELECT *, target_user_id FROM *PREFIX*" . self::TABLE_NAME . " WHERE item_guid = ? GROUP BY target_user_id;";