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