Skip to content

Commit 54dca10

Browse files
authored
Refactor legacy usage of implode (#1938)
1 parent c14982d commit 54dca10

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/Api2/Model/Renderer

1 file changed

+1
-1
lines changed

app/code/core/Mage/Api2/Model/Renderer/Xml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function _prepareData($data, $root = false)
105105
}
106106
}
107107
$data = $data instanceof Varien_Object ? $data->toArray() : (array)$data;
108-
$isAssoc = !preg_match('/^\d+$/', implode(array_keys($data), ''));
108+
$isAssoc = !preg_match('/^\d+$/', implode('', array_keys($data)));
109109

110110
$preparedData = array();
111111
foreach ($data as $key => $value) {

0 commit comments

Comments
 (0)