KodaShuko / phpbb3calendar

Automatically exported from code.google.com/p/phpbb3calendar
0 stars 0 forks source link

When user specifies month but not day for birthday, all non-days in that month show as birthdays #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
phpBB3 allows a user to specify only a month for their Birthday.  (not a day.)

Alpha.3 of the calendar release doesn't handle this well - it shows every
non-day in a month as being a birthday.  

See my ScreenShot here:
http://www.theworstwebsiteever.org/viewtopic.php?p=179#p179

Original issue reported on code.google.com by goldstar...@gmail.com on 3 Oct 2007 at 11:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I cant reproduce the problem on the live demo

Original comment by jcc...@gmail.com on 3 Oct 2007 at 11:59

GoogleCodeExporter commented 8 years ago
i can.  ;-)
see december.
http://www.theworstwebsiteever.org/calendar.php?month=2

Original comment by goldstar...@gmail.com on 4 Oct 2007 at 12:24

Attachments:

GoogleCodeExporter commented 8 years ago
Added the following if statement to the get_birthdays function

if( empty($day) ||  empty($month) )
{
return array();
}

Error is fixed. It has been applied to the live demo. When i get home I will 
make a
new push to the CVS.

Original comment by jcc...@gmail.com on 4 Oct 2007 at 2:02