ашч Warning: Undefined property: stdClass::$can_deleted

This commit is contained in:
2025-12-01 12:11:30 +05:00
parent 6af8045876
commit 71fad8cce2

View File

@@ -102,7 +102,7 @@ $(document).ready(function(){ldelim}
{if $tpl->Id == 1}
<span title="" class="topleftDir icon_sprite ico_delete_no"></span>
{else}
{if $tpl->can_deleted==1}
{if isset($tpl->can_deleted) && $tpl->can_deleted==1}
{if check_permission('template_edit')}
<a title="{#TEMPLATES_DELETE#}" dir="{#TEMPLATES_DELETE#}" name="{#TEMPLATES_DELETE_CONF#}" href="index.php?do=templates&action=delete&Id={$tpl->Id}&cp={$sess}" class="topleftDir ConfirmDelete icon_sprite ico_delete"></a>
{else}