From: Hypolite Petovan Date: Mon, 10 May 2021 22:59:49 +0000 (-0400) Subject: Fix undefined variables in profile/vcard.tpl X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=abc0616d331f487a353b6df9d681c7a6b0471593;p=friendica.git Fix undefined variables in profile/vcard.tpl --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index f328453e9b..3e35d60c29 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;