From: Andrew Skalski Date: Wed, 18 Oct 2000 14:24:20 +0000 (+0000) Subject: fixed logic error in the get parameters stage of mcal_list_alarms X-Git-Tag: php-4.0.4RC3~632 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23defd97e9298775368395ac82936632da4b3389;p=php fixed logic error in the get parameters stage of mcal_list_alarms --- diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c index 4b9748589d..48ce653ebe 100644 --- a/ext/mcal/php_mcal.c +++ b/ext/mcal/php_mcal.c @@ -627,7 +627,7 @@ PHP_FUNCTION(mcal_list_alarms) pils *mcal_le_struct; cal_list_t *my_cal_list; int myargc=ZEND_NUM_ARGS(); - if (myargc != 1 || myargc !=7 || zend_get_parameters_ex(myargc, &streamind, &year, &month, &day, &hour, &min, &sec) == FAILURE) { + if ((myargc != 1 && myargc != 7) || zend_get_parameters_ex(myargc, &streamind, &year, &month, &day, &hour, &min, &sec) == FAILURE) { WRONG_PARAM_COUNT; }