We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7375d4 commit 362343eCopy full SHA for 362343e
1 file changed
web/github.php
@@ -78,7 +78,7 @@
78
} else {
79
$CommitMsg = '';
80
}
81
- $CommitCount = count($Message['commits']);
+ $CommitCount = isset($Message['commits']) ? count($Message['commits']) : 1;
82
$ChatMsg = "{$Msg['alias']} pushed ".($CommitCount == 1 ? 'a commit' : $CommitCount.' commits')." to https://github.com/{$RepositoryName} [*{$Branch}*]\n:notepad_spiral: {$CommitMsg}";
83
$Msg['text'] = $ChatMsg;
84
//error_log($Msg['text']);
0 commit comments