diff options
-rw-r--r-- | core/models/item.php | 2 |
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; } /** |