]> andersk Git - sql-web.git/blobdiff - lib/mitsql.lib.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@73 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / lib / mitsql.lib.php
index db3790df2fd57df3e2ef4533e7939b118ffb4f35..c59a4347e776573ff2d6e91dc6c19cc7badb9c69 100755 (executable)
@@ -13,7 +13,11 @@ require_once('security.lib.php');
 
 require_once('display.lib.php');
 
-$BASE_URL = 'http'.(isSSL()?'s':'').'://'.$_SERVER['SERVER_NAME'].BASE_URL;
+if (isset($_SERVER['SERVER_NAME'])) {
+       $BASE_URL = 'http'.(isSSL()?'s':'').'://'.$_SERVER['SERVER_NAME'].BASE_URL;
+} else {
+       $BASE_URL = 'http://sql.mit.edu/';
+}
 
 if (isset($_SERVER['REQUEST_URI'])) {
     //$thisPath=pathinfo($_SERVER['REQUEST_URI']);
This page took 0.025815 seconds and 4 git commands to generate.