mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-31 12:10:51 -04:00
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)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user