suppress werning output when number of emails is bigger than number of TELs

This commit is contained in:
Alexey Shpakovsky 2021-10-03 00:09:43 +02:00
parent aafc2f467a
commit 2eca13d7a2
No known key found for this signature in database
GPG key ID: 5797A726A2A4230A

View file

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