summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/item.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-21 16:58:54 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-21 16:58:54 -0800
commit2a08cbf76da0f9984c0e182e6c448b516d8d7db3 (patch)
tree25cd5779d26ba8eed61f19b93cd83585aba8ce39 /modules/gallery/helpers/item.php
parentf493130e59f26d41f090c5ca40e95b416b9b154b (diff)
Return an empty Item_Model when item::find_by_path fails
Diffstat (limited to 'modules/gallery/helpers/item.php')
-rw-r--r--modules/gallery/helpers/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php
index 3596a2bf..08a04ad0 100644
--- a/modules/gallery/helpers/item.php
+++ b/modules/gallery/helpers/item.php
@@ -232,7 +232,7 @@ class item_Core {
}
}
- return false;
+ return new Item_Model();
}