Index: temp/trunk/data/lib/slib.php
===================================================================
--- temp/trunk/data/lib/slib.php	(revision 3375)
+++ temp/trunk/data/lib/slib.php	(revision 3411)
@@ -35,15 +35,16 @@
 	if(ereg("^/install/", $_SERVER['PHP_SELF'])) {
 		return;
-	}
-		
+	}		
 	//DB¤«¤éÀßÄê¾ðÊó¤ò¼èÆÀ
 	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);
+		// ºÇ½é¤Ë¼Â¹Ô¤¹¤ëPHP¥½¡¼¥¹¤ò¸¡º÷¤¹¤ë
+		$arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ? OR main_php IS NULL",array($_SERVER['PHP_SELF']));
+		foreach($arrRet as $array) {
+			if($array['extern_php'] != "") {
+				$path = ROOT_DIR . $array['extern_php'];
+				if(file_exists($path)) {
+					require_once($path);
+				}
 			}
 		}
