gwynne Wed, 22 Jul 2009 03:05:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=284576
Log:
first match is always set. check it for empty string instead
Changed paths:
U SVNROOT/commit-bugs.php
Modified: SVNROOT/commit-bugs.php
===================================================================
--- SVNROOT/commit-bugs.php 2009-07-22 02:58:19 UTC (rev 284575)
+++ SVNROOT/commit-bugs.php 2009-07-22 03:05:15 UTC (rev 284576)
@@ -40,7 +40,7 @@
$bug_list = array();
foreach ($matched_bugs as $matched_bug) {
$bug = array();
- $bug['project'] = isset($matched_bug[1]) ? $matched_bug[1] :
$bug_project_default;
+ $bug['project'] = $matched_bug[1] === "" ? $bug_project_default :
$matched_bug[1];
$bug['number'] = intval($matched_bug[2]);
$bugid = $bug['project'] . $bug['number'];
$bug['url_prefix'] = isset($bug_url_prefixes[$bug['project']]) ?
$bug_url_prefixes[$bug['project']] : $bug_url_prefixes[''];
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php