From: Derick Rethans Date: Mon, 14 Jul 2008 17:38:33 +0000 (+0000) Subject: - MFH: Fixed reversed logic. X-Git-Tag: php-5.3.0alpha1~348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7ee127f9cbb56ec6b64771f0562049eb903ece1;p=php - MFH: Fixed reversed logic. --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index bcfc9405a1..5a1226a392 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1610,7 +1610,7 @@ PHP_FUNCTION(checkdate) RETURN_FALSE; } - if (y < 1 || y > 32767 || timelib_valid_date(y, m, d)) { + if (y < 1 || y > 32767 || !timelib_valid_date(y, m, d)) { RETURN_FALSE; } RETURN_TRUE; /* True : This month, day, year arguments are valid */