summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mcal/php_mcal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c
index b3ae486b84..0d98299c4a 100644
--- a/ext/mcal/php_mcal.c
+++ b/ext/mcal/php_mcal.c
@@ -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;
}