Skip to content

Commit

Permalink
Remove unnecessary join.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 15, 2016
1 parent 9a5ffc8 commit 1157850
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions whups/lib/Driver/Sql.php
Expand Up @@ -2676,8 +2676,7 @@ public function getListeners($ticket, $withowners = true,
{
try {
$listeners = $this->_db->selectValues(
'SELECT DISTINCT l.user_uid FROM whups_ticket_listeners l, '
. 'whups_tickets t WHERE (l.ticket_id = ?)',
'SELECT DISTINCT user_uid FROM whups_ticket_listeners WHERE (ticket_id = ?)',
array((int)$ticket));
} catch (Horde_Db_Exception $e) {
throw new Whups_Exception($e);
Expand Down

0 comments on commit 1157850

Please sign in to comment.