From de6809c46af54e8745bca55e3fa4dec409a958ab Mon Sep 17 00:00:00 2001 From: rWatcher Date: Thu, 20 Aug 2009 21:14:53 -0400 Subject: [PATCH] Possible bug fix. --- modules/batchtag/helpers/batchtag_theme.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/batchtag/helpers/batchtag_theme.php b/modules/batchtag/helpers/batchtag_theme.php index 3a6fe70a..bb9a08cb 100644 --- a/modules/batchtag/helpers/batchtag_theme.php +++ b/modules/batchtag/helpers/batchtag_theme.php @@ -21,6 +21,11 @@ class batchtag_theme_Core { static function sidebar_blocks($theme) { // Display form for tagging in the album sidebar. + // Make sure the current page belongs to an item. + if (!$theme->item()) { + return; + } + $item = $theme->item(); // Only display the form in albums that the user has edit permission in.