Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Fix "Undefined index: log" (Fix #106)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Jul 5, 2020
1 parent c97c000 commit 8d5b459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/SanctionsHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 8d5b459

Please sign in to comment.