From 98f09695b6ffee888940ac96c4cf413255161cb8 Mon Sep 17 00:00:00 2001
From: Shish <shish@shishnet.org>
Date: Thu, 26 Jan 2012 15:16:52 +0000
Subject: [PATCH] sometimes tags are set with no images id...

---
 ext/view/main.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ext/view/main.php b/ext/view/main.php
index 01df30ee..3115c2f9 100644
--- a/ext/view/main.php
+++ b/ext/view/main.php
@@ -125,6 +125,8 @@ class ViewImage extends SimpleExtension {
 		}
 
 		if($event->page_matches("post/set")) {
+			if(!isset($_POST['image_id'])) return;
+
 			$image_id = int_escape($_POST['image_id']);
 
 			send_event(new ImageInfoSetEvent(Image::by_id($image_id)));