From 2eca13d7a283ef0693c633aebc5385f5ed17d242 Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Sun, 3 Oct 2021 00:09:43 +0200 Subject: [PATCH] suppress werning output when number of emails is bigger than number of TELs --- abook_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abook_class.php b/abook_class.php index 06342ca..41ccf9d 100755 --- a/abook_class.php +++ b/abook_class.php @@ -121,7 +121,7 @@ class abook_carddav extends addressbook_backend { // one line per each email foreach($vcard->EMAIL as $i => $email) { // also show one TEL for one EMAIL (extra TELs are ignored) - $ret[] = $this->vcard2sq($uri, $vcard, $email, (string)$vcard->TEL[$i]); + $ret[] = $this->vcard2sq($uri, $vcard, $email, (string)@$vcard->TEL[$i]); } } if($limit == 1) { return $ret[0]; }