Index: temp/trunk/data/lib/slib.php
===================================================================
--- temp/trunk/data/lib/slib.php	(revision 1970)
+++ temp/trunk/data/lib/slib.php	(revision 2186)
@@ -23,11 +23,13 @@
 function sfLoadUpdateModule() {
 	//DB¤«¤éÀßÄê¾ðÊó¤ò¼èÆÀ
-	$objConn = new SC_DbConn(DEFAULT_DSN);
-	$arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ?",array($_SERVER['PHP_SELF']));
-		
-	if($arrRet[0]['extern_php'] != "") {
-		$path = ROOT_DIR . $arrRet[0]['extern_php'];
-		if(file_exists($path)) {
-			require_once($path);
+	if(defined('DB_USER') && defined('DB_PASSWORD') && defined('DB_SERVER') && defined('DB_NAME')) {
+		$objConn = new SC_DbConn(DEFAULT_DSN);
+		$arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ?",array($_SERVER['PHP_SELF']));
+			
+		if($arrRet[0]['extern_php'] != "") {
+			$path = ROOT_DIR . $arrRet[0]['extern_php'];
+			if(file_exists($path)) {
+				require_once($path);
+			}
 		}
 	}
