summaryrefslogtreecommitdiffstats
path: root/lib/class/flag.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-29 09:17:04 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-29 09:17:04 +0000
commite61a3b3ca1aae656a4c9f88713041e88c204eac5 (patch)
tree33442f09abee256d4af54638c697c4cabba5f893 /lib/class/flag.class.php
parentc603a3c5c098393e8aaa72e293daec5a431ee0c9 (diff)
downloadampache-e61a3b3ca1aae656a4c9f88713041e88c204eac5.tar.gz
ampache-e61a3b3ca1aae656a4c9f88713041e88c204eac5.tar.bz2
ampache-e61a3b3ca1aae656a4c9f88713041e88c204eac5.zip
added in the manage users section and put in a temp disable songs section which currently does not work
Diffstat (limited to 'lib/class/flag.class.php')
-rw-r--r--lib/class/flag.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/class/flag.class.php b/lib/class/flag.class.php
index 59a07aaa..fe2f3047 100644
--- a/lib/class/flag.class.php
+++ b/lib/class/flag.class.php
@@ -90,14 +90,16 @@ class Flag {
if ($count) { $limit = " LIMIT " . intval($count); }
+ $results = array();
+
$sql = "SELECT id FROM flagged ORDER BY date " . $limit;
$db_results = mysql_query($sql, dbh());
while ($r = mysql_fetch_assoc($db_results)) {
- $results[] = $r;
+ $results[] = $r['id'];
}
- return $results['id'];
+ return $results;
} // get_recent