From 619368f183a2c652f8ac40a83d847c608187e53d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 19 Aug 2008 04:02:53 +0000 Subject: correct sql for re-sorting --- lib/class/browse.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/class') 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); -- cgit