summaryrefslogtreecommitdiffstats
path: root/lib/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/search.php')
-rw-r--r--lib/search.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/search.php b/lib/search.php
index 891a7610..ed2b3cec 100644
--- a/lib/search.php
+++ b/lib/search.php
@@ -163,7 +163,7 @@ function search_song($data,$operator,$method,$limit) {
break;
case 'minbitrate':
$value = intval($value);
- $where_sql .= " song.bitrate >= '$value' $operator";
+ $where_sql .= " song.bitrate >= ('$value'*1000) $operator";
break;
default:
// Notzing!
@@ -186,6 +186,7 @@ function search_song($data,$operator,$method,$limit) {
*/
$_SESSION['userdata']['stored_search'] = $sql;
+ //echo "DEBUG: $sql<BR>"; flush();
$db_results = mysql_query($sql, dbh());
while ($r = mysql_fetch_assoc($db_results)) {