mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-10 17:36:21 +00:00
If contactmanager isn't loaded, don't load contacts
This commit is contained in:
parent
acb0a74ba2
commit
566bc4eb16
@ -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"])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user