diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-04-13 15:06:33 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-04-13 15:06:33 -0400 |
commit | 9acabf8b977afd8972a0402f6e1b7676d324c78c (patch) | |
tree | a23c2503a1371947e4bd8d577c8fcac054848015 /lib | |
parent | 8cc720fce1d9631d608410badd1943c9b8aa898d (diff) | |
download | ampache-9acabf8b977afd8972a0402f6e1b7676d324c78c.tar.gz ampache-9acabf8b977afd8972a0402f6e1b7676d324c78c.tar.bz2 ampache-9acabf8b977afd8972a0402f6e1b7676d324c78c.zip |
Fix democratic playlist display
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/democratic.class.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/class/democratic.class.php b/lib/class/democratic.class.php index b6264fb7..351d2803 100644 --- a/lib/class/democratic.class.php +++ b/lib/class/democratic.class.php @@ -240,8 +240,10 @@ class Democratic extends Tmp_Playlist { $results = array(); - while ($results[] = Dba::fetch_assoc($db_results)) { - // Nada + while ($row = Dba::fetch_assoc($db_results)) { + if ($row['id']) { + $results[] = $row; + } } return $results; |