From 1b3c611e02a5ff37d06a619f1c344b976733e981 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 30 Aug 2023 10:38:55 +0800 Subject: [PATCH] * Fix var is empty error for app checkModuleName. --- framework/base/router.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 1333bfcea7..839a3b380d 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1765,6 +1765,7 @@ class baseRouter } if($checkedModule[$var]) return true; if(!$exit) return false; + if(!$var) return false; $this->triggerError("'$var' illegal. ", __FILE__, __LINE__, $exit = true); }