From abc0616d331f487a353b6df9d681c7a6b0471593 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 10 May 2021 18:59:49 -0400 Subject: [PATCH] Fix undefined variables in profile/vcard.tpl --- src/Model/Profile.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index f328453e9..3e35d60c2 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -412,7 +412,12 @@ class Profile } } - $p = []; + // Expected profile/vcard.tpl profile.* template variables + $p = [ + 'address' => null, + 'edit' => null, + 'upubkey' => null, + ]; foreach ($profile as $k => $v) { $k = str_replace('-', '_', $k); $p[$k] = $v;