diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-04 18:19:49 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-04 18:19:49 -0700 |
commit | e5a010476992dd6b5ad949673486571c39536d32 (patch) | |
tree | 145f8d54a74c6fd33aa6f44c4c254de2e5c91399 /modules/gallery/helpers/MY_url.php | |
parent | 5158a6f4339ee85b928e6bd33a937a24f91f8bc2 (diff) |
Make sure the item is loaded in parse_url() before we use it.
Diffstat (limited to 'modules/gallery/helpers/MY_url.php')
-rw-r--r-- | modules/gallery/helpers/MY_url.php | 2 |
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; |