svn: SVNROOT/ commit-email.php

[email protected] (Gwynne Raskind) Thu, 16 Jul 09 05:31:26 +0000
Newsgroups php.cvs,svn.migration
Message-ID <[email protected]>
--12eba0da91f716b11c8ad4015ee9acd78c6d6863
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

gwynne		Thu, 16 Jul 2009 05:31:26 +0000

URL: http://svn.php.net/viewvc?view=revision&revision=284177

Changed paths:
	U   SVNROOT/commit-email.php

Log:
handle the case of an empty diff (only deleted files) correctly

Modified: SVNROOT/commit-email.php
===================================================================
--- SVNROOT/commit-email.php	2009-07-16 05:22:15 UTC (rev 284176)
+++ SVNROOT/commit-email.php	2009-07-16 05:31:26 UTC (rev 284177)
@@ -160,7 +160,7 @@
 $diffs = implode("\n", $diffs);
 $diffs_length = strlen($diffs);
 $diffs_string = ($diffs_length > 262144 ? "<diffs exceeded maximum size>" :
-                    ($diffs_length > 8192 ? "" : $diffs));
+                    ($diffs_length > 8192 ? NULL : $diffs));

 // -----------------------------------------------------------------------------------------------------------------------------
 // Build e-mail
@@ -201,7 +201,7 @@
             "\r\n" .
             $diffs_string;

-if ($diffs_string === "") {
+if ($diffs_string === NULL) {
     $msg_body .=
         "--{$boundary}\r\n" .
         "Content-Type: text/x-diff; encoding=\"utf-8\"\r\n" .

--12eba0da91f716b11c8ad4015ee9acd78c6d6863--