summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/models/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/models/item.php b/core/models/item.php
index 863d055f..f8a710e4 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -334,7 +334,7 @@ class Item_Model extends ORM_MPTT {
FROM {items} WHERE id = $child_id)
ORDER BY {$this->sort_column} {$this->sort_order}");
- return $result->position;
+ return $result->current()->position;
}
/**