mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 09:27:24 +01:00
Fix catalog if no files
This commit is contained in:
parent
2fff8835a2
commit
ed54529f29
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user