1
0
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:
Loic Blot 2014-10-16 17:23:50 +02:00
parent acb0a74ba2
commit 566bc4eb16

View File

@ -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"])) {