Skip to content

Commit

Permalink
Do not request if there are no hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed May 23, 2021
1 parent bcc499d commit 7c6f275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function pushDiscordNotify( string $message, $user, string $action ) {
$hooks = $wgDiscordNotificationsIncomingWebhookUrl;
if ( !$hooks ) {
self::getLogger()->warning( '$wgDiscordNotificationsIncomingWebhookUrl is not set' );
return;
} elseif ( is_string( $hooks ) ) {
$hooks = [ $hooks ];
}
Expand Down

0 comments on commit 7c6f275

Please sign in to comment.