From 9b43ff0f712aaa724ccb52c41b0a16eb69757e13 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Wed, 12 Aug 2020 16:35:57 -0600 Subject: [PATCH] Update contacts_vcard.php (#5391) improved email inclusion --- app/contacts/contacts_vcard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/contacts/contacts_vcard.php b/app/contacts/contacts_vcard.php index c0e182dc83..eb844b20ff 100644 --- a/app/contacts/contacts_vcard.php +++ b/app/contacts/contacts_vcard.php @@ -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