diff --git a/php/modules/Album.php b/php/modules/Album.php index 11ec0c8..1d4e6ec 100644 --- a/php/modules/Album.php +++ b/php/modules/Album.php @@ -688,7 +688,8 @@ class Album extends Module { $albumIDs = explode(',', $this->albumIDs); # Get first albumID - $albumID = array_splice($albumIDs, 0, 1)[0]; + $albumID = array_splice($albumIDs, 0, 1); + $albumID = $albumID[0]; $query = Database::prepare($this->database, "UPDATE ? SET album = ? WHERE album IN (?)", array(LYCHEE_TABLE_PHOTOS, $albumID, $this->albumIDs)); $result = $this->database->query($query); @@ -757,4 +758,4 @@ class Album extends Module { } -?> \ No newline at end of file +?>