fix is_assoc
parent
bf7278ab05
commit
507ecc4cc1
|
@ -473,7 +473,7 @@ class VMXTemplate
|
|||
static function is_assoc($a)
|
||||
{
|
||||
reset($a);
|
||||
return !is_int(key($a));
|
||||
return $a && !is_int(key($a));
|
||||
}
|
||||
|
||||
// Merge all scalar and list arguments into one list
|
||||
|
|
Loading…
Reference in New Issue