Seems to be an error on top of some user profiles.
Here it is:
I guess this would be line 260:
Here's the statements around that line incase anyone wants to see a little of what the statement does.
Here it is:
PHP Code:
Warning: mktime() expects parameter 4 to be long, string given in [path]/includes/class_userprofile.php on line 260
PHP Code:
$this->prepared['birthday'] = vbdate($this->registry->options['calformat2'], mktime(0, 0, 0, $bday[0], $bday[1], 1992), false, true, false);
PHP Code:
if ($userinfo['showbirthday'] >= 2)
{
if ($year > $bday[2] AND $bday[2] > 1901 AND $bday[2] != '0000' AND $userinfo['showbirthday'] == 2)
{
require_once(DIR . '/includes/functions_misc.php');
$this->registry->options['calformat1'] = mktimefix($this->registry->options['calformat1'], $bday[2]);
if ($bday[2] >= 1970)
{
$yearpass = $bday[2];
}
else
{
// day of the week patterns repeat every 28 years, so
// find the first year >= 1970 that has this pattern
$yearpass = $bday[2] + 28 * ceil((1970 - $bday[2]) / 28);
}
$this->prepared['birthday'] = vbdate($this->registry->options['calformat1'], mktime(0, 0, 0, $bday[0], $bday[1], $yearpass), false, true, false);
}
else
{
// lets send a valid year as some PHP3 don't like year to be 0
$this->prepared['birthday'] = vbdate($this->registry->options['calformat2'], mktime(0, 0, 0, $bday[0], $bday[1], 1992), false, true, false);
}
if ($this->prepared['birthday'] == '')
{
if ($bday[2] == '0000')
{
$this->prepared['birthday'] = "$bday[0]-$bday[1]";
}
else
{
$this->prepared['birthday'] = "$bday[0]-$bday[1]-$bday[2]";
}
}
}
}
}
Comment