wrong var name (#395)
This commit is contained in:
parent
5948b17e88
commit
83f810a825
@ -102,10 +102,10 @@ class Lua
|
||||
|
||||
private function convert_array($array)
|
||||
{
|
||||
if (!is_array($value)) {
|
||||
if (!is_array($array)) {
|
||||
return $array;
|
||||
}
|
||||
if ($this->is_seqential($value)) {
|
||||
if ($this->is_seqential($array)) {
|
||||
return array_flip(array_map(function ($el) {
|
||||
return $el + 1;
|
||||
}, array_flip($array)));
|
||||
|
Loading…
Reference in New Issue
Block a user