Skip to content

Commit

Permalink
Use correct constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 4, 2016
1 parent 649db67 commit 85a56ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -1842,8 +1842,8 @@ public function changeMessage($folderid, $id, Horde_ActiveSync_Message_Base $mes
// ActiveSync messages do NOT contain the serverUID value, put
// it in ourselves so we can have it during import/change.
$message->setServerUID($id);
if (!empty($device->supported[self::APPOINTMENTS_FOLDER_UID])) {
$message->setSupported($device->supported[self::APPOINTMENTS_FOLDER_UID]);
if (!empty($device->supported[Horde_ActiveSync::CLASS_CALENDAR])) {
$message->setSupported($device->supported[Horde_ActiveSync::CLASS_CALENDAR]);
}
try {
$this->_connector->calendar_replace($id, $message, $server_id);
Expand All @@ -1867,8 +1867,8 @@ public function changeMessage($folderid, $id, Horde_ActiveSync_Message_Base $mes
}
$stat = array('mod' => $this->getSyncStamp($folderid), 'id' => $id, 'flags' => 1);
} else {
if (!empty($device->supported[self::CONTACTS_FOLDER_UID])) {
$message->setSupported($device->supported[self::CONTACTS_FOLDER_UID]);
if (!empty($device->supported[Horde_ActiveSync::CLASS_CONTACTS])) {
$message->setSupported($device->supported[Horde_ActiveSync::CLASS_CONTACTS]);
}
try {
$this->_connector->contacts_replace($id, $message);
Expand All @@ -1892,8 +1892,8 @@ public function changeMessage($folderid, $id, Horde_ActiveSync_Message_Base $mes
}
$stat = array('mod' => $this->getSyncStamp($folderid), 'id' => $id, 'flags' => 1);
} else {
if (!empty($device->supported[self::TASKS_FOLDER_UID])) {
$message->setSupported($device->supported[self::TASKS_FOLDER_UID]);
if (!empty($device->supported[Horde_ActiveSync::CLASS_TASKS])) {
$message->setSupported($device->supported[Horde_ActiveSync::CLASS_TASKS]);
}
try {
$this->_connector->tasks_replace($id, $message);
Expand All @@ -1917,8 +1917,8 @@ public function changeMessage($folderid, $id, Horde_ActiveSync_Message_Base $mes
}
$stat = array('mod' => $this->getSyncStamp($folderid), 'id' => $id, 'flags' => 1);
} else {
if (!empty($device->supported[self::NOTES_FOLDER_UID])) {
$message->setSupported($device->supported[self::NOTES_FOLDER_UID]);
if (!empty($device->supported[Horde_ActiveSync::CLASS_NOTES])) {
$message->setSupported($device->supported[Horde_ActiveSync::CLASS_NOTES]);
}
try {
$this->_connector->notes_replace($id, $message);
Expand Down

0 comments on commit 85a56ff

Please sign in to comment.