diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c13fcbfc1c..99a98a5896 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-05-27 Miguel de Dios + + * include/functions_api.php, include/api.php: cleaned and organice the + source code. + 2010-05-27 Ramon Novoa * extensions/update_manager/main.php: Show an error instead of diff --git a/pandora_console/include/api.php b/pandora_console/include/api.php index b7220408e6..7a9d2df491 100644 --- a/pandora_console/include/api.php +++ b/pandora_console/include/api.php @@ -1,5 +1,4 @@ 'array', 'data' => explode($separator,$other)); + $returnVar = array('type' => 'array', 'data' => explode($separator, $other)); foreach ($returnVar['data'] as $index => $element) $returnVar['data'][$index] = urldecode($element); } @@ -79,7 +79,9 @@ function returnError($typeError, $returnType) { * * @param $returnType * @param $data - * @return unknown_type + * @param $separator + * + * @return */ function returnData($returnType, $data, $separator = ';') { switch ($returnType) { @@ -117,7 +119,7 @@ function returnData($returnType, $data, $separator = ';') { } else { foreach($data['data'] as $dataContent) { - echo implode($separator, $dataContent) . "\n"; + echo implode($separator, $dataContent) . "\n"; } } break;