From 0b87e8fe93c9bddbddc604a33eb0e94e21d8c358 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sun, 27 Apr 2014 14:40:54 +0200 Subject: [PATCH] Syntax adjustments --- php/modules/Album.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/modules/Album.php b/php/modules/Album.php index f2683e3..27b828d 100644 --- a/php/modules/Album.php +++ b/php/modules/Album.php @@ -58,7 +58,7 @@ class Album extends Module { $this->plugins(__METHOD__, 0, func_get_args()); # Get album information - switch($this->albumIDs) { + switch ($this->albumIDs) { case 'f': $return['public'] = false; $query = "SELECT id, title, tags, public, star, album, thumbUrl FROM lychee_photos WHERE star = 1 " . $this->settings['sorting']; @@ -84,7 +84,7 @@ class Album extends Module { # Get photos $photos = $this->database->query($query); $previousPhotoID = ''; - while($photo = $photos->fetch_assoc()) { + while ($photo = $photos->fetch_assoc()) { # Parse $photo['sysdate'] = date('d F Y', substr($photo['id'], 0, -4));