summaryrefslogtreecommitdiff
path: root/lib/kolab_sync_data_email.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-02 10:37:49 (GMT)
committerAleksander Machniak <alec@alec.pl>2012-09-02 10:37:49 (GMT)
commitf6fe8e0894240b9b0ad1fe95354312d960a7a04d (patch)
tree4614e533fb094b1ad0ebc167d82f610d55ad1217 /lib/kolab_sync_data_email.php
parent1cb0206a72b3a76d32e838b38e2b5213b5e02162 (diff)
downloadkolab-syncroton-f6fe8e0894240b9b0ad1fe95354312d960a7a04d.tar.gz
Fixed some errors
Diffstat (limited to 'lib/kolab_sync_data_email.php')
-rw-r--r--lib/kolab_sync_data_email.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 2f0aaaa..9c29510 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -421,15 +421,15 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
$dstname = $this->backend->folder_id2name($dstFolderId, $this->device->deviceid);
if (empty($msg)) {
- throw Syncroton_Exception_Status_MoveItems(Syncroton_Exception_Status_MoveItems::INVALID_SOURCE);
+ throw new Syncroton_Exception_Status_MoveItems(Syncroton_Exception_Status_MoveItems::INVALID_SOURCE);
}
if ($dstname === null) {
- throw Syncroton_Exception_Status_MoveItems(Syncroton_Exception_Status_MoveItems::INVALID_DESTINATION);
+ throw new Syncroton_Exception_Status_MoveItems(Syncroton_Exception_Status_MoveItems::INVALID_DESTINATION);
}
if (!$this->storage->move_message($msg['uid'], $dstname, $msg['foldername'])) {
- throw Syncroton_Exception_Status_MoveItems(Syncroton_Exception_Status_MoveItems::INVALID_SOURCE);
+ throw new Syncroton_Exception_Status_MoveItems(Syncroton_Exception_Status_MoveItems::INVALID_SOURCE);
}
// Use COPYUID feature (RFC2359) to get the new UID of the copied message
@@ -525,7 +525,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
$sent = $this->backend->send_message($body, $smtp_error);
if (!$sent) {
- throw Syncroton_Exception_Status(Syncroton_Exception_Status::MAIL_SUBMISSION_FAILED);
+ throw new Syncroton_Exception_Status(Syncroton_Exception_Status::MAIL_SUBMISSION_FAILED);
}
// Save sent message in Sent folder