Fix fatal errors after changes in 607fd7b4

This commit is contained in:
Thomas Bruederli 2012-04-21 20:01:25 +02:00
parent 8d5bf112fa
commit 2996832789

View file

@ -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'];
}