summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-19 04:02:53 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-19 04:02:53 +0000
commit619368f183a2c652f8ac40a83d847c608187e53d (patch)
tree9129d6e70f1ad7dcaafe19dbea52bc0e8608c2da /lib
parent8151391c527bdf306562eb8957fd84e23fdf0aeb (diff)
downloadampache-619368f183a2c652f8ac40a83d847c608187e53d.tar.gz
ampache-619368f183a2c652f8ac40a83d847c608187e53d.tar.bz2
ampache-619368f183a2c652f8ac40a83d847c608187e53d.zip
correct sql for re-sorting
Diffstat (limited to 'lib')
-rw-r--r--lib/class/browse.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php
index ba9bb60c..77d1a81f 100644
--- a/lib/class/browse.class.php
+++ b/lib/class/browse.class.php
@@ -912,6 +912,7 @@ class Browse {
}
else {
$object_ids = $object_ids ? $object_ids : self::get_saved();
+ self::save_objects($object_ids);
}
// Reset the total items
@@ -1057,7 +1058,7 @@ class Browse {
// If there's nothing there don't do anything
if (!count($objects)) { return false; }
$type = self::$type;
- $where_sql .= "`$type`.`id` IN (";
+ $where_sql = "WHERE `$type`.`id` IN (";
foreach ($objects as $object_id) {
$object_id = Dba::escape($object_id);