From 2f8b4df0f564c883d7cdcf07936ce639b806a322 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 15 Dec 2008 21:23:00 +0000 Subject: Protect menus and blocks against the fact that we don't have an item on tag pages. --- core/helpers/core_block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers/core_block.php') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index abaa9205..7f756b92 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -25,7 +25,7 @@ class core_block_Core { $profiler->render(); } - if (access::can("edit", $theme->item())) { + if ($theme->item() && access::can("edit", $theme->item())) { return new View("in_place_edit.html"); } } -- cgit v1.2.3