Check if array

This commit is contained in:
Akhil 2023-08-04 01:06:26 +05:30
parent edb1bf29eb
commit 65521c56e3
No known key found for this signature in database
GPG key ID: A8AB680DBB7F3D45

View file

@ -260,6 +260,9 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
);
}
if ('address-book' === $sName) {
if (!\is_array($mResult)) {
$mResult = array();
}
include_once __DIR__ . '/NextcloudAddressBook.php';
$mResult = new NextcloudAddressBook();
}