This commit is contained in:
rjb
2026-01-09 15:18:26 +08:00
parent 8f2ed2c108
commit a3940c505c
142 changed files with 13360 additions and 81 deletions

View File

@@ -72,7 +72,9 @@ abstract class Smarty_Internal_CompileBase {
}
// named attribute
} else {
$kv = each($mixed);
// Replace deprecated each() with key()/current() for PHP 7.2+ compatibility
reset($mixed);
$kv = array('key' => key($mixed), 'value' => current($mixed));
// option flag?
if (in_array($kv['key'], $this->option_flags)) {
if (is_bool($kv['value'])) {