From 9dccbe0d3666459f40b79d9e1833439a057813b9 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 9 May 2009 05:42:06 +0000 Subject: Fix for ticket #255 2nd iteration --- core/models/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/models') 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; } /** -- cgit v1.2.3