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:
mdtrooper 2011-09-22 09:40:49 +00:00
parent 06da3c7500
commit b045a0db46
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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