Only show "delete file" link on posts with files
This commit is contained in:
parent
68b98df6cd
commit
139514402d
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user