зеркало из https://github.com/nextcloud/spreed.git
If there are no sessions, we don't need to run a query
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
44945778ba
Коммит
5c9e293f1a
|
@ -142,6 +142,10 @@ class GuestManager {
|
|||
* @return string[]
|
||||
*/
|
||||
public function getNamesBySessionHashes(array $sessionHashes): array {
|
||||
if (empty($sessionHashes)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$query = $this->connection->getQueryBuilder();
|
||||
$query->select('*')
|
||||
->from('talk_guests')
|
||||
|
|
Загрузка…
Ссылка в новой задаче