diff --git a/includes/SanctionsHooks.php b/includes/SanctionsHooks.php index b742577..47af054 100644 --- a/includes/SanctionsHooks.php +++ b/includes/SanctionsHooks.php @@ -272,7 +272,7 @@ public static function onSidebarBeforeOutput( Skin $skin, array &$sidebar ) { ] ]; - if ( !isset( $sidebar['TOOLBOX'] ) ) { + if ( !isset( $sidebar['TOOLBOX'] ) || !$sidebar['TOOLBOX'] ) { $sidebar['TOOLBOX'] = $sanctionsLink; } else { $toolbox = $sidebar['TOOLBOX'];