diff options
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(); } |