Reset imgPath variable if VideoThumbnails failed

This commit is contained in:
Mikael Nordfeldth 2015-03-04 13:45:42 +01:00
parent f6df1f1dd3
commit 9720fd8250
1 changed files with 1 additions and 0 deletions

View 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;