From 203e2bf7ca2698fa0cf7b75f0363a6594017935a Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 27 Feb 2024 18:06:57 +0800 Subject: [PATCH] * zin: support to set boolean value by empty args. --- lib/zin/core/set.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/zin/core/set.class.php b/lib/zin/core/set.class.php index 05d98cdff3..476ef18bff 100644 --- a/lib/zin/core/set.class.php +++ b/lib/zin/core/set.class.php @@ -40,6 +40,8 @@ class set extends setting implements iDirective public static function __callStatic($prop, $args): set { $set = new set(); + if(empty($args)) return $set->set($prop, true); + if($prop === 'class' || strtolower($prop) === 'classname') { global $config;