summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/class/random.class.php6
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