mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-28 10:16:23 +00:00
Fix array name for phones. Also remove spaces.
This commit is contained in:
parent
b17cf11020
commit
eb6cd672b8
@ -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"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user