Fix fatal errors after changes in 607fd7b4
This commit is contained in:
parent
8d5bf112fa
commit
2996832789
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,6 @@ class kolab_zpush extends rcube_plugin
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
$this->init_imap();
|
|
||||||
$devices = $this->list_devices();
|
$devices = $this->list_devices();
|
||||||
|
|
||||||
if ($device = $devices[$imei]) {
|
if ($device = $devices[$imei]) {
|
||||||
|
@ -264,6 +263,7 @@ class kolab_zpush extends rcube_plugin
|
||||||
public function list_devices()
|
public function list_devices()
|
||||||
{
|
{
|
||||||
if (!isset($this->devices)) {
|
if (!isset($this->devices)) {
|
||||||
|
$this->init_imap();
|
||||||
$this->devices = (array)$this->root_meta['DEVICE'];
|
$this->devices = (array)$this->root_meta['DEVICE'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue