Possible bug fix.
This commit is contained in:
parent
b1eeb65185
commit
de6809c46a
|
@ -21,6 +21,11 @@ class batchtag_theme_Core {
|
||||||
static function sidebar_blocks($theme) {
|
static function sidebar_blocks($theme) {
|
||||||
// Display form for tagging in the album sidebar.
|
// Display form for tagging in the album sidebar.
|
||||||
|
|
||||||
|
// Make sure the current page belongs to an item.
|
||||||
|
if (!$theme->item()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$item = $theme->item();
|
$item = $theme->item();
|
||||||
|
|
||||||
// Only display the form in albums that the user has edit permission in.
|
// Only display the form in albums that the user has edit permission in.
|
||||||
|
|
Reference in New Issue
Block a user