1
0
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:
Ner'zhul 2014-10-01 09:27:02 +02:00
parent b17cf11020
commit eb6cd672b8

View File

@ -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"];
}
}
}