Skip to content

Commit

Permalink
Fix nasty little typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 12, 2014
1 parent f45a92e commit e2f2f54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Sql.php
Expand Up @@ -164,7 +164,7 @@ public function updateServerIdInState($uid, $serverid)

try {
$results = $this->_db->selectValues($sql,
array($this->_deviceInfo->id, $this->_devInfo->user, $uid));
array($this->_deviceInfo->id, $this->_deviceInfo->user, $uid));
} catch (Horde_Db_Exception $e) {
$this->_logger->err(sprintf(
'[%s] %s',
Expand All @@ -175,13 +175,14 @@ public function updateServerIdInState($uid, $serverid)
}
$update = 'UPDATE ' . $this->_syncStateTable . ' SET sync_data = ? WHERE '
. 'sync_devid = ? AND sync_user = ? AND sync_folderid = ?';

foreach ($results as $folder) {
$folder = unserialize($folder);
$folder->setServerId($serverid);
$folder = serialize($folder);
try {
$this->_db->update($update,
array($folder, $this->_deviceInfo->id, $this->_devInfo->user, $uid));
array($folder, $this->_deviceInfo->id, $this->_deviceInfo->user, $uid));
} catch (Horde_Db_Exception $e) {
$this->_logger->err(sprintf(
'[%s] %s',
Expand Down

0 comments on commit e2f2f54

Please sign in to comment.