diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-24 05:13:07 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-24 05:13:07 +0000 |
commit | fe5e72104ab0c622a58cd11c56afb00e3ebb7208 (patch) | |
tree | b4a2dc2d876d760b533a0bd57a99fa44e596dbab /lib/class/random.class.php | |
parent | d7f75d16b5ef190eb0bad3c7e9fcbd1e248c5a41 (diff) | |
download | ampache-fe5e72104ab0c622a58cd11c56afb00e3ebb7208.tar.gz ampache-fe5e72104ab0c622a58cd11c56afb00e3ebb7208.tar.bz2 ampache-fe5e72104ab0c622a58cd11c56afb00e3ebb7208.zip |
fixed some tarded typos, obviously time for me to get some sleep
Diffstat (limited to 'lib/class/random.class.php')
-rw-r--r-- | lib/class/random.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/random.class.php b/lib/class/random.class.php index a5ce5a1a..b24845e8 100644 --- a/lib/class/random.class.php +++ b/lib/class/random.class.php @@ -175,7 +175,7 @@ class Random { $results = array(); - $data = $GLOBALS['user']->get_recently_player('1','artist'); + $data = $GLOBALS['user']->get_recently_played('1','artist'); if ($data['0']) { $where_sql = " WHERE `artist`='" . $data['0'] . "' "; } @@ -183,10 +183,10 @@ class Random { $sql = "SELECT `id` FROM `song` $where_sql ORDER BY RAND() LIMIT $limit"; $db_results = Dba::query($sql); - while ($row = Dba::fetch_assoc($db_resutls)) { + while ($row = Dba::fetch_assoc($db_results)) { $results[] = $row['id']; } - + return $results; } // get_artist |