1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 11:59:56 +02:00

Add check on waveform image creation

This commit is contained in:
Afterster 2016-02-13 10:09:15 +01:00
parent 74b383e22e
commit 21df3dfc40

View file

@ -224,6 +224,10 @@ class Waveform
// each waveform to be processed with be $height high, but will be condensed
// and resized later (if specified)
$img = imagecreatetruecolor($data_size / $detail, $height);
if ($img === false) {
debug_event('waveform', 'Cannot create image.', 1);
return null;
}
// fill background of image
if ($background == "") {