From: Roland Häder Date: Thu, 26 Jan 2017 14:23:30 +0000 (+0100) Subject: added spaces + some curly braces + some usage of dbm::is_result() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1de8e31df61c5c37e28cd5edc5439fde0c3b1c4e;p=friendica.git added spaces + some curly braces + some usage of dbm::is_result() Signed-off-by: Roland Häder --- diff --git a/mod/photos.php b/mod/photos.php index c8dad750d1..6fc546454d 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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, ''] ; + } $photo = [ 'href' => 'photo/' . $hires['resource-id'] . '-' . $hires['scale'] . '.' . $phototypes[$hires['type']],