ilib.inc.php3: don't add a "/" to $cfgPmaAbsoluteUri if it's empty!

This commit is contained in:
Olivier Müller
2001-08-23 08:50:04 +00:00
parent 3bf3ab1d3b
commit 5470a0ce21
2 changed files with 4 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ if (!defined('__LIB_INC__')){
}
// Adds a trailing slash et the end of the phpMyAdmin uri if it does not
// exist
if (substr($cfgPmaAbsoluteUri, -1) != '/') {
if ($cfgPmaAbsoluteUri != '' && substr($cfgPmaAbsoluteUri, -1) != '/') {
$cfgPmaAbsoluteUri .= '/';
}
include('./defines.inc.php3');