Url::get_absolute_url(): fix checking if the public root URL is relative
This commit is contained in:
parent
89e29b8add
commit
11b67c53b3
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ class Url {
|
|||
public static function get_absolute_url($relative_url=null) {
|
||||
if (!is_string($relative_url))
|
||||
$relative_url = self :: get_current_url();
|
||||
if (self :: $public_root_url[0] == '/') {
|
||||
if (self :: $public_root_url && self :: $public_root_url[0] == '/') {
|
||||
Log :: debug(
|
||||
"URL :: get_absolute_url($relative_url): configured public root URL is relative ".
|
||||
"(%s) => try to detect it from current request infos.",
|
||||
|
|
Loading…
Reference in a new issue