Skip to content

Commit

Permalink
Convert one more instance of ORM::$loaded to ORM::loaded()
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Nov 25, 2009
1 parent f50dbd9 commit 33b1d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/controllers/items.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class Items_Controller extends Controller { class Items_Controller extends Controller {
public function __call($function, $args) { public function __call($function, $args) {
$item = ORM::factory("item", (int)$function); $item = ORM::factory("item", (int)$function);
if (!$item->loaded) { if (!$item->loaded()) {
return Kohana::show_404(); return Kohana::show_404();
} }
// Redirect to the more specific resource type, since it will render // Redirect to the more specific resource type, since it will render
Expand Down

0 comments on commit 33b1d4b

Please sign in to comment.