summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-05-09 05:42:06 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-05-09 05:42:06 +0000
commit9dccbe0d3666459f40b79d9e1833439a057813b9 (patch)
tree0f0d8c49260d3b1a97b6240c7e6e0d339233fcdf
parent4485a66b3e2be41a2bfb210a869e16b536b8038d (diff)
Fix for ticket #255
2nd iteration
-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;
}
/**