1
0
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:
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']; $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"];
} }
} }
} }