Fix undefined variables in profile/vcard.tpl
This commit is contained in:
parent
2c6bf754d5
commit
abc0616d33
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user