diff --git a/admin/templates/templates/templates.tpl b/admin/templates/templates/templates.tpl
index 3280fd8..64046fb 100644
--- a/admin/templates/templates/templates.tpl
+++ b/admin/templates/templates/templates.tpl
@@ -102,7 +102,7 @@ $(document).ready(function(){ldelim}
{if $tpl->Id == 1}
{else}
- {if $tpl->can_deleted==1}
+ {if isset($tpl->can_deleted) && $tpl->can_deleted==1}
{if check_permission('template_edit')}
{else}