diff options
author | Andrew Skalski <askalski@php.net> | 2000-10-18 14:24:20 +0000 |
---|---|---|
committer | Andrew Skalski <askalski@php.net> | 2000-10-18 14:24:20 +0000 |
commit | 23defd97e9298775368395ac82936632da4b3389 (patch) | |
tree | 88c17758ce949c9cd1a138edefd08b7d28378862 /ext | |
parent | 7a54e0b10c953339d32e8a9379e6888cadb67c8e (diff) | |
download | php-git-23defd97e9298775368395ac82936632da4b3389.tar.gz |
fixed logic error in the get parameters stage of mcal_list_alarms
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mcal/php_mcal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |