Index: temp/trunk/data/lib/slib.php
===================================================================
--- temp/trunk/data/lib/slib.php	(revision 6225)
+++ temp/trunk/data/lib/slib.php	(revision 6232)
@@ -78,18 +78,18 @@
 	}		
 	//DB¤«¤éÀßÄê¾ðÊó¤ò¼èÆÀ
-	if(defined('DB_USER') && defined('DB_PASSWORD') && defined('DB_SERVER') && defined('DB_NAME')) {
-		/*
-		$objConn = new SC_DbConn(DEFAULT_DSN);
-		// ºÇ½é¤Ë¼Â¹Ô¤¹¤ëPHP¥½¡¼¥¹¤ò¸¡º÷¤¹¤ë
-		$arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ? OR main_php = '*'",array($_SERVER['PHP_SELF']));
-		foreach($arrRet as $array) {
-			if($array['extern_php'] != "") {
-				$path = DATA_PATH . $array['extern_php'];
-				if(file_exists($path)) {
-					require_once($path);
+	if(defined('DEFAULT_DSN')) {
+		if(sfTabaleExists('dtb_update')) {
+			$objConn = new SC_DbConn();
+			// ºÇ½é¤Ë¼Â¹Ô¤¹¤ëPHP¥½¡¼¥¹¤ò¸¡º÷¤¹¤ë
+			$arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ? OR main_php = '*'",array($_SERVER['PHP_SELF']));
+			foreach($arrRet as $array) {
+				if($array['extern_php'] != "") {
+					$path = DATA_PATH . $array['extern_php'];
+					if(file_exists($path)) {
+						require_once($path);
+					}
 				}
 			}
 		}
-		*/
 	}
 }
