| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
pvchat1
Joined: 15 Jul 2007 Posts: 13 Location: California
|
Posted: Fri Sep 07, 2007 1:10 am Post subject: Problem with use of parse_url function in php_seo_class |
|
|
I get this error on links to my site root.
| Quote: | | [phpBB Debug] PHP Notice: in file /phpbb_seo/phpbb_seo_class.php on line 215: Undefined index: path |
Old versions of php return '' in path when there is no path. Newer versions (>4.7) leave path undefined. |
|
|
| Back to top |
|
 |
|
 |
pvchat1
Joined: 15 Jul 2007 Posts: 13 Location: California
|
Posted: Fri Sep 07, 2007 1:50 am Post subject: Re: Problem with use of parse_url function in php_seo_class |
|
|
Here's a patch that fixes the error
After
| Code: |
// Grabb params
$parsed_url = parse_url($this->url);
|
Add
| Code: |
if (!isset($parsed_url['path'])) {
$parsed_url['path'] = '';
}
|
|
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |