diff --git a/ext/comment/theme.php b/ext/comment/theme.php
index edd6ec0d..4dd60657 100644
--- a/ext/comment/theme.php
+++ b/ext/comment/theme.php
@@ -174,7 +174,7 @@ class CommentListTheme extends Themelet {
$avatar = "![](\"http://www.gravatar.com/avatar/$hash.jpg\")
";
}
$h_reply = " - Reply";
- $h_ip = $user->can("view_ip") ? "
".show_ip($image->owner_ip, "Comment posted {$comment->posted}") : "";
+ $h_ip = $user->can("view_ip") ? "
".show_ip($comment->poster_ip, "Comment posted {$comment->posted}") : "";
$h_del = $user->can("delete_comment") ?
' - Del' : '';