

















Line xxx: Undefined variable: now if (!empty($post_data['user_birthday']))
{
list($bday_day, $bday_month, $bday_year) = array_map('intval', explode('-', $post_data['user_birthday']));
if ($bday_year)
{
$diff = $now['mon'] - $bday_month;
if ($diff == 0)
{
$diff = ($now['mday'] - $bday_day < 0) ? 1 : 0;
}
else
{
$diff = ($diff < 0) ? 1 : 0;
}
$post_data['age'] = (int) ($now['year'] - $bday_year - $diff);
}
}
else
{
$post_data['age'] = false;
}
With best regards from Russia

Users browsing this forum: No registered users and 14 guests