Fixed issue with trash item detection

This commit is contained in:
matthew 2019-07-04 12:56:03 -05:00 committed by Shish
parent c4111cc948
commit 558d154e85

View File

@ -67,7 +67,7 @@ class Trash extends Extension
public function onImageDeletion(ImageDeletionEvent $event) public function onImageDeletion(ImageDeletionEvent $event)
{ {
if($event->force===false && $event->image->trash===false) { if($event->force!==true && $event->image->trash!==true) {
self::set_trash($event->image->id, true); self::set_trash($event->image->id, true);
$event->stop_processing = true; $event->stop_processing = true;
} }