mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57:03 +03:00
Check if array
This commit is contained in:
parent
edb1bf29eb
commit
65521c56e3
1 changed files with 3 additions and 0 deletions
|
|
@ -260,6 +260,9 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ('address-book' === $sName) {
|
if ('address-book' === $sName) {
|
||||||
|
if (!\is_array($mResult)) {
|
||||||
|
$mResult = array();
|
||||||
|
}
|
||||||
include_once __DIR__ . '/NextcloudAddressBook.php';
|
include_once __DIR__ . '/NextcloudAddressBook.php';
|
||||||
$mResult = new NextcloudAddressBook();
|
$mResult = new NextcloudAddressBook();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue