missed a spot

This commit is contained in:
Shish 2009-08-12 15:35:30 +01:00
parent 76a9090ded
commit ffe6bc3597

View File

@ -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'])) {