diff options
Diffstat (limited to 'modules')
-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(); |