wrong var name (#395)

This commit is contained in:
rik43 2018-04-15 12:59:56 +03:00 committed by Daniil Gentili
parent 5948b17e88
commit 83f810a825

View File

@ -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)));