diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-07 07:35:15 -0800 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-07 07:35:15 -0800 | 
| commit | 87f00a5ec5e072f98f5ed6fcd559ef249da57b36 (patch) | |
| tree | d1c6ddf82600c4d02ab9098766597d1a3cbfac33 /modules/gallery/models | |
| parent | c40735c922b53eb32be1ae39a030362eea52e602 (diff) | |
| parent | e300ede3d8311bf236594480355f710b39aaa451 (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/models')
| -rw-r--r-- | modules/gallery/models/item.php | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 9735ed62..d27e331b 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -444,11 +444,11 @@ class Item_Model extends ORM_MPTT {        $position = $db->from("items")          ->where("parent_id", $this->id) -        ->where("$sort_column < ", $child->$sort_column) +        ->where("$sort_column $comp ", $child->$sort_column)          ->where($where)          ->count_records(); -     // We stopped short of our target value in the sort (notice that we're using a < comparator +      // We stopped short of our target value in the sort (notice that we're using a < comparator        // above) because it's possible that we have duplicate values in the sort column.  An        // equality check would just arbitrarily pick one of those multiple possible equivalent        // columns, which would mean that if you choose a sort order that has duplicates, it'd pick  | 
