diff --git a/nsfw.tgz b/nsfw.tgz
index da2890e23..9d34dc0aa 100755
Binary files a/nsfw.tgz and b/nsfw.tgz differ
diff --git a/nsfw/nsfw.php b/nsfw/nsfw.php
index 9a40416db..3f00a2f23 100755
--- a/nsfw/nsfw.php
+++ b/nsfw/nsfw.php
@@ -144,13 +144,16 @@ function nsfw_prepare_body(&$a,&$b) {
 					$found = true;
 					break;
 				}
-				if(stristr($b['item']['tags'], '>' . $word . '<' )) {
-					$found = true;
-					break;
+				if(is_array($b['item']['tags']) && count($b['item']['tags'])) {
+					foreach($b['item']['tags'] as $t) {
+						if(stristr($t, '>' . $word . '<' )) {
+							$found = true;
+							break;
+						}
+					}
 				}
 			} 
-		}
-		
+		}		
 	}
 	if($found) {
 		$rnd = random_string(8);