diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-04 12:39:48 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-04 12:39:48 -0800 |
commit | bfcd4efe9282bc7cbaea13dd68b507c2f142f18f (patch) | |
tree | c58213a3869896e126dcc9642d00b841f91862e8 /modules/gallery | |
parent | cbf9754922f9b5accf0542921f80b571ae36f373 (diff) |
Another K2.4 holder over... We had, when checking for position, ->where(, "=", NULL) which would never find any. It should have been ->where(, "is", NULL)
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/models/item.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 414181d9..dac939de 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -460,7 +460,7 @@ class Item_Model extends ORM_MPTT { // deal with it the hard way. $count = $db->from("items") ->where("parent_id", "=", $this->id) - ->where($this->sort_column, "=", NULL) + ->where($this->sort_column, "IS", NULL) ->merge_where($where) ->count_records(); |