X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fglobals.inc.php.in;h=82d25004c9071846bb47a9664d002ac3c1bdf0e6;hb=94f6c381d91fe4eedbc4acb58fd44a119a09b091;hp=fa8646a0ee7900b21a53a77fc72a0d94eeca50d8;hpb=b16476f7bb53a91fa0689658bdb830dfb1fc4fc9;p=platal.git diff --git a/include/globals.inc.php.in b/include/globals.inc.php.in index fa8646a..82d2500 100644 --- a/include/globals.inc.php.in +++ b/include/globals.inc.php.in @@ -46,7 +46,7 @@ class PlatalGlobals $this->session = $sess; $base = empty($_SERVER['HTTPS']) ? 'http://' : 'https://'; - $this->baseurl = trim($base.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/'); + $this->baseurl = @trim($base.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/'); $this->spoolroot = dirname(dirname(__FILE__)); $this->read_config();