From: Michael J. Rubinsky Date: Sat, 2 Oct 2010 20:33:39 +0000 (-0400) Subject: $purl['path'] might be an empty string, avoid warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=171e3470792831de5a59aa7057d6dc4636d58c47;p=horde.git $purl['path'] might be an empty string, avoid warnings --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index b9032f025..2d0737565 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -956,7 +956,7 @@ HTML; $url = $protocol . '://' . $server_name; } - if (isset($puri['path']) && $puri['path'][0] == '/') { + if (isset($puri['path']) && substr($puri['path'], 0, 1) == '/') { $url .= $puri['path']; } else { $webroot = ltrim($GLOBALS['registry']->get('webroot', empty($opts['app']) ? null : $opts['app']), '/');