This commit is contained in:
nikolark committed 2015-08-11 20:47:16 +02:00
1 parent 1d6b2dac3c
commit 9a146f98f7
1 file changed
+2 -1
+2 -1
View File
@@ -23,7 +23,8 @@ if( DB::isError($rows) ) {
}
function sales_to_int($el) {
return $el['sales'] = intval($el['sales']);
$el['sales'] = intval($el['sales']);
return $el;
}
$rows = array_map('sales_to_int', $rows);
return_json_response(array('memberships'=> $rows, 'meta' => array('sql' => $sql)));