mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Remove useless try catch
This commit is contained in:
@@ -114,13 +114,7 @@ class OcSmsApp extends App {
|
||||
return;
|
||||
}
|
||||
|
||||
$result = array();
|
||||
try {
|
||||
$result = $cm->search('',array('FN'));
|
||||
} catch (Exception $e) {
|
||||
// If contact manager failed, avoid the issue
|
||||
return;
|
||||
}
|
||||
$result = $cm->search('',array('FN'));
|
||||
|
||||
foreach ($result as $r) {
|
||||
if (isset ($r["TEL"])) {
|
||||
|
||||
Reference in New Issue
Block a user