2011-09-22 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: replaced the anonymous function for the named function. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4980 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
06da3c7500
commit
b045a0db46
|
@ -1,3 +1,8 @@
|
|||
2011-09-22 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_api.php: replaced the anonymous function for the named
|
||||
function.
|
||||
|
||||
2011-09-21 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_api.php: added code to get count of event when the api
|
||||
|
|
|
@ -123,9 +123,7 @@ function returnData($returnType, $data, $separator = ';') {
|
|||
else {
|
||||
if (!empty($data['data'])) {
|
||||
foreach($data['data'] as $dataContent) {
|
||||
$clean = array_map(
|
||||
function($item) {return io_safe_output($item);},
|
||||
$dataContent);
|
||||
$clean = array_map("array_apply_io_safe_output", $dataContent);
|
||||
echo implode($separator, $clean) . "\n";
|
||||
}
|
||||
}
|
||||
|
@ -136,6 +134,10 @@ function returnData($returnType, $data, $separator = ';') {
|
|||
}
|
||||
}
|
||||
|
||||
function array_apply_io_safe_output($item) {
|
||||
return io_safe_output($item);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param $ip
|
||||
|
|
Loading…
Reference in New Issue