1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 17:28:41 +01:00

Fix catalog if no files

This commit is contained in:
8chan 2014-05-14 17:53:59 +00:00
parent 2fff8835a2
commit ed54529f29

View File

@ -51,8 +51,10 @@
if (isset($post['files']))
$files = json_decode($post['files']);
if ($files[0]->file == 'deleted') continue;
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
if (isset($files)) {
if ($files[0]->file == 'deleted') continue;
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
}
if ($settings['use_tooltipster']) {
$post['muhdifference'] = ago(time() - $post['time']);