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 . ' {};'); } }