HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Calendar 'mktime' error

Title Calendar 'mktime' error
Description An error is given on some systems:
mktime() expects parameter 4 to be long, string given
Affects Certain PHP versions
Fix Change line 271 of site/pages/modules/calendar.php from:

Code

            $timestamp=mktime(0,0,0,$explode[1],$explode[2],$explode[0]);
to:

Code

            $timestamp=mktime(0,0,0,intval($explode[1]),intval($explode[2]),intval($explode[0]));


Trackbacks

There have been no trackbacks yet

Edited