com web/master: oops, thanks salathe: github-webhook.php
| From: | Ferenc Kovacs | Date: | Tue, 10 Jun 2014 18:08:16 +0000 |
| Subject: | com web/master: oops, thanks salathe: github-webhook.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19221@lists.php.net to get a copy of this message | ||
Commit: acbafe16189ee1b8ab8bd1ef061f13456880ebcd
Author: kovacs.ferenc <kovacs.ferenc@ustream.tv> Tue, 10 Jun 2014 20:08:16 +0200
Parents: 957a4a8351e9754671e7f8439d4429e5fd019867
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=acbafe16189ee1b8ab8bd1ef061f13456880ebcd
Log:
oops, thanks salathe
Changed paths:
M github-webhook.php
Diff:
diff --git a/github-webhook.php b/github-webhook.php
index bb78f62..70f15e8 100644
--- a/github-webhook.php
+++ b/github-webhook.php
@@ -32,7 +32,7 @@ switch ($_SERVER['HTTP_X_GITHUB_EVENT']) {
// if we somehow end up receiving a PR for a repo not matching anything send it to systems so
that we can fix it
$to = 'systems@php.net';
foreach ($config['repos'] as $repoPrefix => $email) {
- if (strpos($repoName, $repoPrefix) !== 0) {
+ if (strpos($repoName, $repoPrefix) === 0) {
$to = $email;
}
}