summaryrefslogtreecommitdiff
path: root/core/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries')
-rw-r--r--core/libraries/ORM_MPTT.php2
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();
}