forked from GithubBackups/vichan
Fix catalog if no files
This commit is contained in:
parent
2fff8835a2
commit
ed54529f29
@ -51,8 +51,10 @@
|
|||||||
|
|
||||||
if (isset($post['files']))
|
if (isset($post['files']))
|
||||||
$files = json_decode($post['files']);
|
$files = json_decode($post['files']);
|
||||||
if ($files[0]->file == 'deleted') continue;
|
if (isset($files)) {
|
||||||
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
if ($files[0]->file == 'deleted') continue;
|
||||||
|
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
||||||
|
}
|
||||||
|
|
||||||
if ($settings['use_tooltipster']) {
|
if ($settings['use_tooltipster']) {
|
||||||
$post['muhdifference'] = ago(time() - $post['time']);
|
$post['muhdifference'] = ago(time() - $post['time']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user