- Code: Select all
Parse error: syntax error, unexpected T_ELSE in /*************/phpbb_seo/phpbb_seo_class.php on line 345
line 344 is
- Code: Select all
else {
and this is after the inserted code
- Code: Select all
$this->seo_stats['format_url_time'] = $this->seo_stats['format_url_time'] + ($this->microtime_float() - $startime);
$this->seo_stats['format_url_num']++;
so the old area of code looks like,
- Code: Select all
// stats
$startime = $this->microtime_float();
$username = strip_tags($username);
$this->seo_url['username'][$username] = $user_id;
if ( $this->seo_opt['profile_inj'] ) {
if ( $this->seo_opt['profile_noids'] ) {
$this->seo_url['user'][$user_id] = $this->seo_static['user'] . '/' . $this->seo_url_encode($username);
} else {
$this->seo_url['user'][$user_id] = $this->format_url($username, $this->seo_delim['user']) . $this->seo_delim['user'] . $user_id;
}
}
$this->seo_stats['format_url_time'] = $this->seo_stats['format_url_time'] + ($this->microtime_float() - $startime);
$this->seo_stats['format_url_num']++;
else {
$this->seo_url['user'][$user_id] = $this->seo_static['user'] . $user_id;
}
}
}
Is this correct, just i'm not sure why i'm getting the error.
Thanks

English |
French

