forked from GNUsocial/gnu-social
Reset imgPath variable if VideoThumbnails failed
This commit is contained in:
parent
f6df1f1dd3
commit
9720fd8250
@ -63,6 +63,7 @@ class VideoThumbnailsPlugin extends Plugin
|
|||||||
if (!getimagesize($imgPath)) {
|
if (!getimagesize($imgPath)) {
|
||||||
common_debug('exec of "avconv" produced a bad/nonexisting image it seems');
|
common_debug('exec of "avconv" produced a bad/nonexisting image it seems');
|
||||||
@unlink($imgPath);
|
@unlink($imgPath);
|
||||||
|
$imgPath = null; // pretend we didn't touch it
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user