]> git.mxchange.org Git - friendica.git/commitdiff
added spaces + some curly braces + some usage of dbm::is_result()
authorRoland Häder <roland@mxchange.org>
Thu, 26 Jan 2017 14:23:30 +0000 (15:23 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 14 May 2018 20:49:55 +0000 (22:49 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
mod/photos.php

index c8dad750d1528b95f9231b7eb0d69706b76c9ffa..6fc546454dcf49b09b9c3c79bb1c7f147524e2f5 100644 (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']],