Fix undefined variables in profile/vcard.tpl

pull/10228/head
Hypolite Petovan 2021-05-10 18:59:49 -04:00
rodzic 2c6bf754d5
commit abc0616d33
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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;