Fix undefined variables in profile/vcard.tpl
This commit is contained in:
parent
2c6bf754d5
commit
abc0616d33
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue