diff --git a/src/index.php b/src/index.php index 4ab6778..b179c83 100644 --- a/src/index.php +++ b/src/index.php @@ -7,12 +7,10 @@ define('APP_INDEX_ROOT_PATH', str_replace('\\', '/', rtrim(dirname(__FILE__), '\\/').'/')); } -if (file_exists(APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php')) -{ - include APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php'; -} -else +if (!file_exists(APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php')) { echo '[105] Missing version directory'; exit(105); } + +include APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/include.php';