summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/ORM_MPTT.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-27 22:34:11 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-27 22:34:11 -0800
commit4b32a71afc7650fe7bdd02ba384c8914f60538f3 (patch)
tree66fea701b9324c1de79c31c548b643f331566223 /modules/gallery/libraries/ORM_MPTT.php
parentcfbbf9ef606094868ccbd25ccf65e1a6f610528b (diff)
Convert back to using ORM::factory(..., $id) instead of calling where().
Diffstat (limited to 'modules/gallery/libraries/ORM_MPTT.php')
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index a7bb24ea..83f9b51e 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -48,7 +48,7 @@ class ORM_MPTT_Core extends ORM {
function save() {
if (!$this->loaded()) {
$this->lock();
- $parent = ORM::factory("item")->where("id", "=", $this->parent_id)->find();
+ $parent = ORM::factory("item", $this->parent_id);
try {
// Make a hole in the parent for this new item