diff --git a/html/define.php b/html/define.php index 2d52e33ef6..ea68a3afb0 100644 --- a/html/define.php +++ b/html/define.php @@ -12,7 +12,12 @@ * ※ IIS は、POST 時にファイル名を使用しないと不具合が発生する。(http://support.microsoft.com/kb/247536/ja) */ define('USE_FILENAME_DIR_INDEX', null); -require_once HTML_REALDIR . HTML2DATA_DIR . 'vendor/autoload.php'; + +$autoload = HTML_REALDIR . HTML2DATA_DIR . 'vendor/autoload.php'; +if (!file_exists($autoload) && !is_readable($autoload)) { + die('Composer is not installed.'); +} +require_once $autoload; // bufferを初期化する while (ob_get_level() > 0 && ob_get_level() > 0) {