mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-22 05:43:07 +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();
|
self::$contactsInverted = array();
|
||||||
|
|
||||||
$cm = $this->c['ContactsManager'];
|
$cm = $this->c['ContactsManager'];
|
||||||
|
if ($cm == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$result = $cm->search('',array('FN'));
|
$result = $cm->search('',array('FN'));
|
||||||
foreach ($result as $r) {
|
foreach ($result as $r) {
|
||||||
if (isset ($r["TEL"])) {
|
if (isset ($r["TEL"])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user