2008-2009 year change bug
Posted: Sat Jan 03, 2009 2:42 pm
Not a major bug but still is - after 1st of January 2009 I have noticed that some of the bookings from January 2009 have disappeared and I thought it was something serious. Actually it is not - all the information about bookings is still in the database. It is just somehow links "<--" and "-->" on top of the reservations table page (where you see whole month with apartments) still have 2008 year in there. And also in the address bar it still has this "...tabella.php?anno=2008&..." but actual year is 2009. When you manually change 2008 to 2009 in the address bar it works fine.
Also "mese=13" which stands for "month" in address bar is wrong - there is only 12 months in a year. If you change that to 1 it works fine and shows January, 2 for February and so on.
PS. Also I had same bug as a year ago when PHPR creates a new template for next year on 31st of December - see topic
http://www.digitaldruid.net/php-residen ... ight=#1353
Would it be better to create a mini php script - to automatically check if PHP residence files have proper rights/owners so this will never happen again?
Thanks!
Also "mese=13" which stands for "month" in address bar is wrong - there is only 12 months in a year. If you change that to 1 it works fine and shows January, 2 for February and so on.
PS. Also I had same bug as a year ago when PHPR creates a new template for next year on 31st of December - see topic
http://www.digitaldruid.net/php-residen ... ight=#1353
Would it be better to create a mini php script - to automatically check if PHP residence files have proper rights/owners so this will never happen again?
Thanks!