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:
parent
5b56f189ae
commit
1de8e31df6
1 changed files with 4 additions and 2 deletions
|
@ -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']],
|
||||
|
|
Loading…
Reference in a new issue