Update base.php

This commit is contained in:
Namhyeon Go 2018-12-29 13:22:35 +09:00 committed by GitHub
parent aa000ed1c8
commit 3de566294c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,13 @@ if(!function_exists("include_isolate")) {
// set autoloader
if(!function_exists("set_autoloader")) {
function set_autoloader() {
include('./vendor/autoload.php');
$flag = false;
$inc_file = './vendor/autoload.php'
if(file_exists($inc_file)) {
include('./vendor/autoload.php');
$flag = true;
}
return $flag;
}
}