Permalink
Browse files

Make sure that $item exists in site_menu().

  • Loading branch information...
1 parent 1240878 commit c682ba86bdc6b7661e35e3913be73b4cba5c0896 @bharat bharat committed May 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/digibug/helpers/digibug_event.php
@@ -28,7 +28,7 @@ static function admin_menu($menu, $theme) {
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")

0 comments on commit c682ba8

Please sign in to comment.