summaryrefslogtreecommitdiff
path: root/modules/digibug/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-05-16 22:37:10 -0700
committerBharat Mediratta <bharat@menalto.com>2010-05-16 22:37:10 -0700
commitc682ba86bdc6b7661e35e3913be73b4cba5c0896 (patch)
treee6676f1cc11b36327e4a15f59918337a40d63362 /modules/digibug/helpers
parent1240878df0f4a2b0ad0cdb32814717038ff2773f (diff)
Make sure that $item exists in site_menu().
Diffstat (limited to 'modules/digibug/helpers')
-rw-r--r--modules/digibug/helpers/digibug_event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/digibug/helpers/digibug_event.php b/modules/digibug/helpers/digibug_event.php
index 4c842615..413bf586 100644
--- a/modules/digibug/helpers/digibug_event.php
+++ b/modules/digibug/helpers/digibug_event.php
@@ -28,7 +28,7 @@ class digibug_event_Core {
static function site_menu($menu, $theme) {
$item = $theme->item();
- if ($item->type == "photo") {
+ if ($item && $item->type == "photo") {
$menu->get("options_menu")
->append(Menu::factory("link")
->id("digibug")