diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 07:47:19 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 07:47:19 +0000 |
commit | e44ff9bb6054f83d266a28f4e5418ff9b98a5b80 (patch) | |
tree | 2ff6b454d82542218ba0a160993ecc2466cbf958 /core/libraries/ORM_MPTT.php | |
parent | d21f3437e64fb67f306eaec40e778e77176796ff (diff) |
ORM_MPTT::parents() should not include the node itself.
Diffstat (limited to 'core/libraries/ORM_MPTT.php')
-rw-r--r-- | core/libraries/ORM_MPTT.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php index c8dd613b..3ce5e3e4 100644 --- a/core/libraries/ORM_MPTT.php +++ b/core/libraries/ORM_MPTT.php @@ -87,11 +87,11 @@ class ORM_MPTT_Core extends ORM { * @return array ORM */ function parents() { - $id = (int)$this->id; if (!isset($this->parents)) { $this->parents = $this ->where("`left` <= {$this->left}") ->where("`right` >= {$this->right}") + ->where("id <> {$this->id}") ->orderby("left", "ASC") ->find_all(); } |