librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1283] Fix for bug 26490, prevent current album to app


From: Jørgen Bøhnsdalen
Subject: [Librefm-commits] [1283] Fix for bug 26490, prevent current album to appear in "other albums" on track-page
Date: Thu, 07 May 2009 19:28:32 +0000

Revision: 1283
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1283
Author:   jurgbohn
Date:     2009-05-07 19:28:31 +0000 (Thu, 07 May 2009)
Log Message:
-----------
Fix for bug 26490, prevent current album to appear in "other albums" on 
track-page

Modified Paths:
--------------
    trunk/nixtape/track.php

Modified: trunk/nixtape/track.php
===================================================================
--- trunk/nixtape/track.php     2009-05-07 19:21:42 UTC (rev 1282)
+++ trunk/nixtape/track.php     2009-05-07 19:28:31 UTC (rev 1283)
@@ -47,8 +47,8 @@
 
 while (($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC))) {
        $trow = sanitize($row);
-       if ($trow["album"]) {
-       $aOtherAlbums[$i++] = new Album($trow["album"], $trow["artist"]);
+       if ($trow["album"] && ($trow["album"] != $track->album_name)) {
+               $aOtherAlbums[$i++] = new Album($trow["album"], 
$trow["artist"]);
        }
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]