]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/imagefile.php
UseFileAsThumbnailException (helps support GIFs)
[quix0rs-gnu-social.git] / lib / imagefile.php
index 535afaacb678ff58d4d932bf05bf88b774a97453..c051fc3ac9bce5118c75242d9f4b1b228833487d 100644 (file)
@@ -264,6 +264,10 @@ class ImageFile
             $this->resizeToFile($outpath, $box);
         }
 
+        if (!file_exists($outpath)) {
+            throw new UseFileAsThumbnailException($this->id);
+        }
+
         return $outpath;
     }