Skip to content

Commit

Permalink
Bug: 14147 Fix WHERE clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 13, 2015
1 parent beae088 commit 805b9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/State/Sql.php
Expand Up @@ -717,7 +717,7 @@ public function deviceExists($devId, $user = null)
$query = 'SELECT COUNT(*) FROM ' . $this->_syncDeviceTable
. ' d INNER JOIN ' . $this->_syncUsersTable
. ' u on d.device_id = u.device_id'
. ' WHERE device_id = ? AND device_user = ?';
. ' WHERE u.device_id = ? AND device_user = ?';
$values = array($devId, $user);
} else {
$query = 'SELECT COUNT(*) FROM ' . $this->_syncDeviceTable . ' WHERE device_id = ?';
Expand Down

0 comments on commit 805b9b5

Please sign in to comment.