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" .
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php