summaryrefslogtreecommitdiffstats
path: root/lib/class/tmp_playlist.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-12 21:58:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-12 21:58:26 +0000
commit504cd93ea89844219a1642a9acdb5797a3e303c1 (patch)
treee11717d39060baeb0e77bd7c3ac485c5cf3569c6 /lib/class/tmp_playlist.class.php
parent4feee9e40a198046a87be105d70caea6b6a9fb6f (diff)
downloadampache-504cd93ea89844219a1642a9acdb5797a3e303c1.tar.gz
ampache-504cd93ea89844219a1642a9acdb5797a3e303c1.tar.bz2
ampache-504cd93ea89844219a1642a9acdb5797a3e303c1.zip
typos abound!
Diffstat (limited to 'lib/class/tmp_playlist.class.php')
-rw-r--r--lib/class/tmp_playlist.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/tmp_playlist.class.php b/lib/class/tmp_playlist.class.php
index f903f1ef..e39bc482 100644
--- a/lib/class/tmp_playlist.class.php
+++ b/lib/class/tmp_playlist.class.php
@@ -144,7 +144,7 @@ class tmpPlaylist {
$results['object_id'] = $data['0'];
}
else {
- $sql = "SELECT id as `object_id` FROM song WHERE disabled='0' ORDER BY RAND()";
+ $sql = "SELECT id as `object_id` FROM song WHERE enabled='1' ORDER BY RAND() LIMIT 1";
$db_results = mysql_query($sql, dbh());
$results = mysql_fetch_assoc($db_results);
}