diff --git a/lib/preview/txt.php b/lib/preview/txt.php index 2b5d8edb89..1e88aec69f 100644 --- a/lib/preview/txt.php +++ b/lib/preview/txt.php @@ -39,7 +39,7 @@ class OC_Preview_TXT extends OC_Preview_Provider{ } $image = new \OC_Image($image); - + if (!$image->valid()) return false; return $image;