Update contacts_vcard.php (#5391)

improved email inclusion
This commit is contained in:
chansizzle
2020-08-12 16:35:57 -06:00
committed by GitHub
parent e72f7a4673
commit 9b43ff0f71

View File

@@ -82,7 +82,7 @@ if (is_array($_GET) && @sizeof($_GET) != 0) {
$database = new database;
$result = $database->select($sql, $parameters, 'all');
if (is_array($result) && @sizeof($result) != 0) {
$e = 0;
$e = 1;
foreach ($result as &$row) {
$vcard->data['email'.$e] = $row["email_address"];
if ($e++ == 2) { break; } //limit to 2 rows