Commit f6997bdf authored by Son Nguyen's avatar Son Nguyen

Revert "Revert "Bug 1619036: Fix a bug when determine if an array is associative""

This reverts commit 6736c637.
parent 6736c637
......@@ -3465,7 +3465,7 @@
// Determine whether the array is associative or 0-based numeric
$numIndex = array_keys($this->fields) == range(0, count($this->fields) - 1);
$numIndex = is_array($this->fields) && array_key_exists(0, $this->fields);
$results = array();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment