com karma: fix double bugs: lib/Git/PostReceiveHook.php
| From: | Alexander Moskaliov | Date: | Wed, 04 Apr 2012 12:37:31 +0000 |
| Subject: | com karma: fix double bugs: lib/Git/PostReceiveHook.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68676@lists.php.net to get a copy of this message | ||
Commit: e7cb7e7acfaa66261f38a3f8047e09e59b2e0413
Author: Alexander Moskaliov <irker@php.net> Wed, 4 Apr 2012 16:37:31 +0400
Parents: a103092576b8d9d7ade835308e8d12ff130a59cf
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=e7cb7e7acfaa66261f38a3f8047e09e59b2e0413
Log:
fix double bugs
Changed paths:
M lib/Git/PostReceiveHook.php
Diff:
diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php
index 77396d4..e331101 100644
--- a/lib/Git/PostReceiveHook.php
+++ b/lib/Git/PostReceiveHook.php
@@ -486,7 +486,7 @@ class PostReceiveHook extends ReceiveHook
$bugs = [];
if (preg_match_all('/(?:(pecl|pear|php)\s*)?(?:bug|#)[\s#:]*([0-9]+)/iuX', $log,
$matchedBugs, PREG_SET_ORDER)) {
foreach($matchedBugs as $bug) {
- $bugs[] = $bugUrlPrefixes[$bug[1]] . $bug[2];
+ $bugs[$bug[2]] = $bugUrlPrefixes[$bug[1]] . $bug[2];
}
}
return $bugs;