summaryrefslogtreecommitdiff
path: root/plugins/kolab_zpush
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-04-21 18:01:25 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-04-21 18:01:25 (GMT)
commit299683278916630dca75f342968a160fffe3a4cd (patch)
tree3dde29daea8e43bff16b472e48a546c10c8e5f2a /plugins/kolab_zpush
parent8d5bf112fa066bd0460ba6e66fb55b342896d85a (diff)
downloadroundcubemail-plugins-kolab-299683278916630dca75f342968a160fffe3a4cd.tar.gz
Fix fatal errors after changes in 607fd7b4
Diffstat (limited to 'plugins/kolab_zpush')
-rw-r--r--plugins/kolab_zpush/kolab_zpush.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kolab_zpush/kolab_zpush.php b/plugins/kolab_zpush/kolab_zpush.php
index f19fe3a..4ef242c 100644
--- a/plugins/kolab_zpush/kolab_zpush.php
+++ b/plugins/kolab_zpush/kolab_zpush.php
@@ -177,7 +177,6 @@ class kolab_zpush extends rcube_plugin
break;
case 'delete':
- $this->init_imap();
$devices = $this->list_devices();
if ($device = $devices[$imei]) {
@@ -264,6 +263,7 @@ class kolab_zpush extends rcube_plugin
public function list_devices()
{
if (!isset($this->devices)) {
+ $this->init_imap();
$this->devices = (array)$this->root_meta['DEVICE'];
}