From 14019e88c5370df8251b8d9836ea5867b670af1c Mon Sep 17 00:00:00 2001 From: momo-i Date: Wed, 22 Oct 2008 21:57:40 +0000 Subject: Fixed Album Art (folder.jpg images) #318 (Thx imigueldiaz) --- lib/class/album.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 76857dc4..6b49eabe 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -334,7 +334,8 @@ class Album extends database_object { // Add the results we got to the current set $total_results += count($data); - $results = array_merge($results,$data); + // HACK for PHP 5, $data must be cast as array $results = array_merge($results, (array)$data); + $results = array_merge($results,(array)$data); if ($total_results > $limit AND $limit > 0) { return $results; -- cgit