forked from GithubBackups/vichan
Fix catalog if no files
This commit is contained in:
parent
c26e339a77
commit
c9ec4a0ada
@ -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