after detecting an error, don't carry on processing the bad data...
This commit is contained in:
		
							parent
							
								
									7608107232
								
							
						
					
					
						commit
						b8bdbd3533
					
				| @ -89,6 +89,7 @@ class ViewImage extends SimpleExtension { | |||||||
| 			$image = Image::by_id($image_id); | 			$image = Image::by_id($image_id); | ||||||
| 			if(is_null($image)) { | 			if(is_null($image)) { | ||||||
| 				$this->theme->display_error($page, "Image not found", "Couldn't find image $image_id"); | 				$this->theme->display_error($page, "Image not found", "Couldn't find image $image_id"); | ||||||
|  | 				return; | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			if($event->page_matches("post/next")) { | 			if($event->page_matches("post/next")) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user