cvs: php4 /ext/mcal php_mcal.c

From: Date: Wed, 18 Oct 2000 14:24:20 +0000
Subject: cvs: php4 /ext/mcal php_mcal.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2117@lists.php.net to get a copy of this message
askalski Wed Oct 18 07:24:20 2000 EDT Modified files: /php4/ext/mcal php_mcal.c Log: fixed logic error in the get parameters stage of mcal_list_alarms Index: php4/ext/mcal/php_mcal.c diff -u php4/ext/mcal/php_mcal.c:1.34 php4/ext/mcal/php_mcal.c:1.35 --- php4/ext/mcal/php_mcal.c:1.34 Tue Oct 17 10:31:36 2000 +++ php4/ext/mcal/php_mcal.c Wed Oct 18 07:24:19 2000 @@ -627,7 +627,7 @@ 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; }

« previous php.cvs (#2117) next »