diff --git a/ext/comment/main.php b/ext/comment/main.php index 17408ac6..73057bfd 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -94,7 +94,7 @@ class CommentList extends SimpleExtension { } public function onPageRequest($event) { - global $user; + global $page, $user; if($event->page_matches("comment")) { if($event->get_arg(0) == "add") { if(isset($_POST['image_id']) && isset($_POST['comment'])) {