mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
If contactmanager isn't loaded, don't load contacts
This commit is contained in:
@@ -104,6 +104,10 @@ class OcSmsApp extends App {
|
||||
self::$contactsInverted = array();
|
||||
|
||||
$cm = $this->c['ContactsManager'];
|
||||
if ($cm == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$result = $cm->search('',array('FN'));
|
||||
foreach ($result as $r) {
|
||||
if (isset ($r["TEL"])) {
|
||||
|
||||
Reference in New Issue
Block a user