summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
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 dac939de..4a3d26e9 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, "IS", NULL)
+ ->where($this->sort_column, "IS", null)
->merge_where($where)
->count_records();