svn: SVNROOT/ commit-bugs.php

[email protected] (Gwynne Raskind) Wed, 22 Jul 2009 03:05:15 +0000
Newsgroups php.cvs,svn.migration
Message-ID <[email protected]>
--ce62f7d33319b6a0936faad0e59afe130ca88cf8
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

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[''];

--ce62f7d33319b6a0936faad0e59afe130ca88cf8--