Skip to main content
Topic: Double check (Read 2110 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Double check

Code: [Select]
		// If we have a day clean that too.
if ($context['view_week'])
{
if ($curPage['day'] > 31 || !mktime(0, 0, 0, $curPage['month'], $curPage['day'], $curPage['year']))
fatal_lang_error('invalid_day', false);
}

This can be "translated" to:

Code: [Select]
		// If we have a day clean that too.
if ($context['view_week'] && !checkdate($curPage['month'], $curPage['day'], $curPage['year']))
fatal_lang_error('invalid_day', false);

Right?
Bugs creator.
Features destroyer.
Template killer.

Re: Double check

Reply #1

Would seem so to me ....

Re: Double check

Reply #2

Darn, I forgot about that one... lol
Bugs creator.
Features destroyer.
Template killer.