From bfcd4efe9282bc7cbaea13dd68b507c2f142f18f Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 4 Jan 2010 12:39:48 -0800 Subject: 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) --- modules/gallery/models/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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(); -- cgit v1.2.3