Fix undefined variables in profile/vcard.tpl

This commit is contained in:
Hypolite Petovan 2021-05-10 18:59:49 -04:00
parent 2c6bf754d5
commit abc0616d33

View 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) { foreach ($profile as $k => $v) {
$k = str_replace('-', '_', $k); $k = str_replace('-', '_', $k);
$p[$k] = $v; $p[$k] = $v;