From fe5e72104ab0c622a58cd11c56afb00e3ebb7208 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 24 Jul 2007 05:13:07 +0000 Subject: fixed some tarded typos, obviously time for me to get some sleep --- lib/class/random.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/class') 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 -- cgit