]> granicus.if.org Git - php/commitdiff
Show the minor MCAL version if we have it.
authorChuck Hagenbuch <chagenbu@php.net>
Wed, 1 Mar 2000 01:34:05 +0000 (01:34 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Wed, 1 Mar 2000 01:34:05 +0000 (01:34 +0000)
ext/mcal/php_mcal.c

index b3ae486b84f89e66cc75f5037149807a09cf2577..0d98299c4a8c2bd476d96ffe57f2d1eead2fd96c 100644 (file)
@@ -151,6 +151,9 @@ PHP_MINFO_FUNCTION(mcal)
        php_printf("<table>");
        php_printf("<tr><td>Mcal Version:</td>");
        php_printf("<td>%s</td>", CALVER);
+#ifdef MCALVER
+       php_printf("<td>%d</td>", MCALVER);
+#endif
        php_printf("</tr></table>");
 }
 
@@ -499,7 +502,7 @@ PHP_FUNCTION(mcal_list_events)
        datetime_t startdate=DT_INIT;
        datetime_t enddate=DT_INIT;
        myargc=ARG_COUNT(ht);
-       if ((myargc !=1 && myargc !=7)|| getParameters(ht,myargc,&streamind,&startyear,&startmonth,&startday,&endyear,&endmonth,&endday) == FAILURE) {
+       if ((myargc != 1 && myargc != 7)|| getParameters(ht,myargc,&streamind,&startyear,&startmonth,&startday,&endyear,&endmonth,&endday) == FAILURE) {
                WRONG_PARAM_COUNT;
        }