Skip to content

Commit 362343e

Browse files
committed
updates fixing error in gitub webhook
1 parent e7375d4 commit 362343e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/github.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
} else {
7979
$CommitMsg = '';
8080
}
81-
$CommitCount = count($Message['commits']);
81+
$CommitCount = isset($Message['commits']) ? count($Message['commits']) : 1;
8282
$ChatMsg = "{$Msg['alias']} pushed ".($CommitCount == 1 ? 'a commit' : $CommitCount.' commits')." to https://github.com/{$RepositoryName} [*{$Branch}*]\n:notepad_spiral: {$CommitMsg}";
8383
$Msg['text'] = $ChatMsg;
8484
//error_log($Msg['text']);

0 commit comments

Comments
 (0)