mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-23 14:22:54 +00:00
Fix array name for phones. Also remove spaces.
This commit is contained in:
@@ -85,8 +85,9 @@ class Application extends App {
|
|||||||
$cm = $this->c['ContactsManager'];
|
$cm = $this->c['ContactsManager'];
|
||||||
$result = $cm->search('',array('FN'));
|
$result = $cm->search('',array('FN'));
|
||||||
foreach ($result as $r) {
|
foreach ($result as $r) {
|
||||||
if (isset ($r["phone"])) {
|
if (isset ($r["TEL"])) {
|
||||||
self::$contacts[$r["phone"]] = $r["FN"];
|
$phoneId = preg_replace(" ", "", $r["TEL"]);
|
||||||
|
self::$contacts[$phoneId] = $r["FN"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user