return fix

This commit is contained in:
Evgeny 2014-11-18 16:21:23 +03:00
parent b71936192a
commit 04dd977843

View File

@ -551,12 +551,8 @@ class Query extends Component implements QueryInterface
$names = ''; $names = '';
foreach ($columns as $name => $column) { foreach ($columns as $name => $column) {
if (is_int($name)) {
$names .= $column . ', ';
} else {
$names .= "\"$name\": $this->from.$column, "; $names .= "\"$name\": $this->from.$column, ";
} }
}
return 'RETURN {' . trim($names, ', ') . '}'; return 'RETURN {' . trim($names, ', ') . '}';
} }