$age = time() - $post->created;
if ($ownpost) {
- if (!record_exists("forum_posts", "parent", $post->id)) {
- $output .= "<a href=\"$CFG->wwwroot/mod/forum/post.php?delete=$post->id\">".get_string("delete", "forum")."</a>";
- if ($reply) {
- $output .= ' | ';
- }
- }
+ $output .= "<a href=\"$CFG->wwwroot/mod/forum/post.php?delete=$post->id\">".get_string("delete", "forum")."</a>";
if ($reply) {
$output .= "<a target=\"_blank\" href=\"$CFG->wwwroot/mod/forum/post.php?reply=$post->id\">".get_string("replyforum", "forum")."</a>";
}
}
if ($ownpost or $isteacher) {
- if (!record_exists("forum_posts", "parent", $post->id)) {
- echo "<a href=\"$CFG->wwwroot/mod/forum/post.php?delete=$post->id\">$strdelete</a>";
- if ($reply) {
- echo " | ";
- } else {
- echo " ";
- }
+ echo "<a href=\"$CFG->wwwroot/mod/forum/post.php?delete=$post->id\">$strdelete</a>";
+ if ($reply) {
+ echo " | ";
+ } else {
+ echo " ";
}
}
if ($reply) {