aaa
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user