From 6f9d5690b4132d49c4b0f2ddd4a3cb69fdc3ad66 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 2 Jan 2020 12:58:12 +0800 Subject: [PATCH] Update index.php --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 7398ab8..a391e1c 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ include 'conststr.php'; include 'functions.php'; $theme = getConfig('theme'); -if ($theme=='') $theme = 'classic.php'; +if ( $theme=='' || !file_exists('theme/'.$theme) ) $theme = 'classic.php'; include 'theme/'.$theme; //echo '
'. json_encode($_SERVER, JSON_PRETTY_PRINT).'';