]> git.mxchange.org Git - friendica.git/commitdiff
Fix undefined variables in profile/vcard.tpl
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 10 May 2021 22:59:49 +0000 (18:59 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 10 May 2021 22:59:49 +0000 (18:59 -0400)
src/Model/Profile.php

index f328453e9b52f3df5a2e657f91a2cb21b97b2b5b..3e35d60c2966fa67d90fd344af64fa6e71b5fa90 100644 (file)
@@ -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;