Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure that $item exists in site_menu().

  • Loading branch information...
commit c682ba86bdc6b7661e35e3913be73b4cba5c0896 1 parent 1240878
@bharat bharat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/digibug/helpers/digibug_event.php
View
2  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")
Please sign in to comment.
Something went wrong with that request. Please try again.