]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Reset imgPath variable if VideoThumbnails failed
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Mar 2015 12:45:42 +0000 (13:45 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Mar 2015 12:45:42 +0000 (13:45 +0100)
plugins/VideoThumbnails/VideoThumbnailsPlugin.php

index 2bbc06d7384b07529701f43a04de09a55647d164..23af7e00ac433676ae53f1e91c91f1feebd6dfd2 100644 (file)
@@ -63,6 +63,7 @@ class VideoThumbnailsPlugin extends Plugin
         if (!getimagesize($imgPath)) {
             common_debug('exec of "avconv" produced a bad/nonexisting image it seems');
             @unlink($imgPath);
+            $imgPath = null;    // pretend we didn't touch it
             return true;
         }
         return false;