diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl
index 3d09b762d..0f968a53f 100755
--- a/view/tpl/profile_advanced.tpl
+++ b/view/tpl/profile_advanced.tpl
@@ -23,7 +23,7 @@
{{$editmenu.menu.chg_photo}}
{{if $editmenu.menu.cr_new}}{{$editmenu.menu.cr_new}}{{/if}}
- {{else}}
+ {{elseif $editmenu}}
{{$editmenu.edit.3}}
{{/if}}
diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl
index 3c3bfda5a..943cc6339 100755
--- a/view/tpl/profile_vcard.tpl
+++ b/view/tpl/profile_vcard.tpl
@@ -19,7 +19,7 @@
{{if $editmenu.menu.cr_new}}{{$editmenu.menu.cr_new}}{{/if}}
- {{else}}
+ {{elseif $editmenu}}
{{/if}}
{{/if}}