Skip to content

Commit

Permalink
Do not need to cast these, they are now always strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 16, 2013
1 parent bb70216 commit b7350cb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions framework/ActiveSync/lib/Horde/ActiveSync/SyncCache.php
Expand Up @@ -388,7 +388,7 @@ public function save()
*/
public function addCollection(array $collection)
{
$this->_data['collections'][strval($collection['id'])] = array(
$this->_data['collections'][$collection['id']] = array(
'class' => $collection['class'],
'windowsize' => isset($collection['windowsize']) ? $collection['windowsize'] : null,
'deletesasmoves' => isset($collection['deletesasmoves']) ? $collection['deletesasmoves'] : null,
Expand Down Expand Up @@ -659,24 +659,24 @@ public function updateFolder(Horde_ActiveSync_Message_Folder $folder)
switch ($folder->type) {
case 7:
case 15:
$this->_data['folders'][strval($folder->serverid)] = array('class' => 'Tasks');
$this->_data['folders'][$folder->serverid] = array('class' => 'Tasks');
break;
case 8:
case 13:
$this->_data['folders'][strval($folder->serverid)] = array('class' => 'Calendar');
$this->_data['folders'][$folder->serverid] = array('class' => 'Calendar');
break;
case 9:
case 14:
$this->_data['folders'][strval($folder->serverid)] = array('class' => 'Contacts');
$this->_data['folders'][$folder->serverid] = array('class' => 'Contacts');
break;
case 17:
case 10:
$this->_data['folders'][strval($folder->serverid)] = array('class' => 'Notes');
$this->_data['folders'][$folder->serverid] = array('class' => 'Notes');
break;
default:
$this->_data['folders'][strval($folder->serverid)] = array('class' => 'Email');
$this->_data['folders'][$folder->serverid] = array('class' => 'Email');
}
$this->_data['folders'][strval($folder->serverid)]['serverid'] = $folder->_serverid;
$this->_data['folders'][$folder->serverid]['serverid'] = $folder->_serverid;
$this->_dirty['folders'] = true;
}

Expand Down

0 comments on commit b7350cb

Please sign in to comment.