diff --git a/inc/display.php b/inc/display.php index 5dbccc8f..a5bfcf7b 100644 --- a/inc/display.php +++ b/inc/display.php @@ -94,7 +94,7 @@ $built .= ' ' . MOD_LINK_BANDELETE . ''; // Delete file (keep post) - if($mod['type'] >= MOD_DELETEFILE) + if(!empty($this->file) && $mod['type'] >= MOD_DELETEFILE) $built .= ' ' . MOD_LINK_DELETEFILE . ''; $built .= '';