1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

restore compatibility with php < 5.5; fixes vichan-devel#86

This commit is contained in:
czaks 2014-09-24 12:26:15 +02:00
parent b2d574fec3
commit 3b2f448102

View File

@ -21,7 +21,7 @@ function postHandler($post) {
$file = set_thumbnail_dimensions($post, $file);
$tn_path = $board['dir'] . $config['dir']['thumb'] . $file->file_id . '.jpg';
if(empty(make_webm_thumbnail($file->file_path, $tn_path, $file->thumbwidth, $file->thumbheight))) {
if(false == make_webm_thumbnail($file->file_path, $tn_path, $file->thumbwidth, $file->thumbheight)) {
$file->thumb = $file->file_id . '.jpg';
}
else {