mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-09 08:56:10 +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'];
|
||||
$result = $cm->search('',array('FN'));
|
||||
foreach ($result as $r) {
|
||||
if (isset ($r["phone"])) {
|
||||
self::$contacts[$r["phone"]] = $r["FN"];
|
||||
if (isset ($r["TEL"])) {
|
||||
$phoneId = preg_replace(" ", "", $r["TEL"]);
|
||||
self::$contacts[$phoneId] = $r["FN"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user