summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-04 12:39:48 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-04 12:39:48 -0800
commitbfcd4efe9282bc7cbaea13dd68b507c2f142f18f (patch)
treec58213a3869896e126dcc9642d00b841f91862e8 /modules/gallery/models
parentcbf9754922f9b5accf0542921f80b571ae36f373 (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/models')
-rw-r--r--modules/gallery/models/item.php2
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();