Permalink
Browse files

Convert one more instance of ORM::$loaded to ORM::loaded()

  • Loading branch information...
bharat committed Nov 25, 2009
1 parent f50dbd9 commit 33b1d4b7efa8c6b825908f48c7e744578e7f9ae6
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/gallery/controllers/items.php
@@ -20,7 +20,7 @@
class Items_Controller extends Controller {
public function __call($function, $args) {
$item = ORM::factory("item", (int)$function);
- if (!$item->loaded) {
+ if (!$item->loaded()) {
return Kohana::show_404();
}
// Redirect to the more specific resource type, since it will render

0 comments on commit 33b1d4b

Please sign in to comment.