summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/ORM_MPTT.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/libraries/ORM_MPTT.php')
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index 01b2d7b7..90b9d38a 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -152,7 +152,7 @@ class ORM_MPTT_Core extends ORM {
*/
function children($limit=null, $offset=0, $where=null, $order_by=array("id" => "ASC")) {
if ($where) {
- $this->where($where);
+ $this->merge_where($where);
}
return $this
@@ -170,7 +170,7 @@ class ORM_MPTT_Core extends ORM {
*/
function children_count($where=null) {
if ($where) {
- $this->where($where);
+ $this->merge_where($where);
}
return $this
@@ -189,7 +189,7 @@ class ORM_MPTT_Core extends ORM {
*/
function descendants($limit=null, $offset=0, $where=null, $order_by=array("id" => "ASC")) {
if ($where) {
- $this->where($where);
+ $this->merge_where($where);
}
return $this
@@ -207,7 +207,7 @@ class ORM_MPTT_Core extends ORM {
*/
function descendants_count($where=null) {
if ($where) {
- $this->where($where);
+ $this->merge_where($where);
}
return $this