diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index a12f94d0d8..7c82e38a95 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -430,7 +430,7 @@ for($x = 0; $x < $total_posts; $x++)
$quote_img = "
";
$pmsg_img = "
";
- if($is_moderator)
+ if($is_auth['auth_mod'])
{
$ip_img = "
";
$delpost_img = "
";