mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-07-23 18:05:33 +00:00
Catch the contactManager exception. Need user test
This commit is contained in:
parent
a3830404c3
commit
9b64b9ecee
@ -108,7 +108,14 @@ class OcSmsApp extends App {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $cm->search('',array('FN'));
|
$result = array();
|
||||||
|
try {
|
||||||
|
$result = $cm->search('',array('FN'));
|
||||||
|
} catch (Exception $e) {
|
||||||
|
// If contact manager failed, avoid the issue
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($result as $r) {
|
foreach ($result as $r) {
|
||||||
if (isset ($r["TEL"])) {
|
if (isset ($r["TEL"])) {
|
||||||
$phoneIds = $r["TEL"];
|
$phoneIds = $r["TEL"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user