diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-17 20:05:26 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-17 20:05:26 +1100 |
| commit | 139514402da1c12f877548087a67ab0bac2458b5 (patch) | |
| tree | 62a350e50af3245b416105c124da28d3a1a5876d /inc/display.php | |
| parent | 68b98df6cd353f963170bb8fbbe649dbf3277f8f (diff) | |
Only show "delete file" link on posts with files
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 .= ' <a title="Ban & Delete" href="?/b/ban&delete/' . $this->id . '">' . MOD_LINK_BANDELETE . '</a>'; // Delete file (keep post) - if($mod['type'] >= MOD_DELETEFILE) + if(!empty($this->file) && $mod['type'] >= MOD_DELETEFILE) $built .= ' <a title="Remove file" href="?/b/file/' . $this->id . '">' . MOD_LINK_DELETEFILE . '</a>'; $built .= '</span>'; |
