[EventCalendar] Re: Uneven calendar

Alex Tingle alex at firetree.net
Thu Nov 24 20:32:59 UTC 2005


Hans,

"Hans D." <hansd at funprox.com> wrote:
> It's indeed very strange.
> The problem occurs whenever I make the number of months bigger than 1.
> I've not changed anything in the code. My host uses PHP 5.0.4 on a Windows 
> server...

I think you may have uncovered a problem with EC running on PHP 5. Please try this patch, and let me know how you get on:

--- eventcalendar3.php  15 Sep 2005 18:19:17 -0000      1.34
+++ eventcalendar3.php  24 Nov 2005 20:30:43 -0000
@@ -685,8 +685,9 @@
   $thead=ec3_util_thead();
   for($i=0; $i<$ec3->num_months; $i++)
   {
+    $next_month=$this_month->next_month();
     ec3_get_calendar_month($this_month,$calendar_days,$thead);
-    $this_month=$this_month->next_month();
+    $this_month=$next_month;
   }

   // Display navigation panel.


-Alex

-- 
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net  +44-7901-552763 



More information about the EventCalendar mailing list