From 85e17b244936ba737e3b8562cfd22e80e5966aeb Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 12 Jun 2023 18:44:50 +0800 Subject: [PATCH] * helper: merge the two "if" statement to one. --- framework/helper.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/helper.class.php b/framework/helper.class.php index cf8ef90918..7873f30661 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -581,9 +581,9 @@ function initItemActions(object &$item, string $actionMenu, array $actionList, o */ function autoloader(string $class) { - if(!class_exists($class)) + if(!class_exists($class) && ($class == 'post_max_size' || $class == 'max_input_vars')) { - if($class == 'post_max_size' or $class == 'max_input_vars') eval('class ' . $class . ' {};'); + eval('class ' . $class . ' {};'); } }