added spaces + some curly braces + some usage of dbm::is_result()

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-01-26 15:23:30 +01:00
parent 5b56f189ae
commit 1de8e31df6
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 4 additions and 2 deletions

View File

@ -1280,8 +1280,9 @@ function photos_content(App $a)
}
}
if (count($ph) == 1)
if (count($ph) == 1) {
$hires = $lores = $ph[0];
}
if (count($ph) > 1) {
if ($ph[1]['scale'] == 2) {
// original is 640 or less, we can display it directly
@ -1319,8 +1320,9 @@ function photos_content(App $a)
]);
}
if ($prevlink)
if ($prevlink) {
$prevlink = [$prevlink, '<div class="icon prev"></div>'] ;
}
$photo = [
'href' => 'photo/' . $hires['resource-id'] . '-' . $hires['scale'] . '.' . $phototypes[$hires['type']],