summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorjhilden <jakobhilden@gmail.com>2009-06-04 21:34:20 -0400
committerjhilden <jakobhilden@gmail.com>2009-06-04 21:34:20 -0400
commita156f1e9be64658c735d47ab04852bef6d10e7af (patch)
treeb886ffac2cc64d21736b2699ee201ea2ad9b6852 /modules
parent81d20c79b6c17a3c395d74da9aa995b24fd06810 (diff)
parente5a010476992dd6b5ad949673486571c39536d32 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/MY_url.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/MY_url.php b/modules/gallery/helpers/MY_url.php
index 019e416f..38f0a683 100644
--- a/modules/gallery/helpers/MY_url.php
+++ b/modules/gallery/helpers/MY_url.php
@@ -54,7 +54,7 @@ class url extends url_Core {
}
}
- if (!empty($item)) {
+ if ($item && $item->loaded) {
Router::$controller = "{$item->type}s";
Router::$controller_path = MODPATH . "gallery/controllers/{$item->type}s.php";
Router::$method = $item->id;