Commit aab89e56 authored by Gerald Salin's avatar Gerald Salin
Browse files

#76 : reaplce spluit with explode call

parent 4a5039b7
......@@ -805,12 +805,12 @@ class tx_nG6_eid {
$by = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('by'));
print json_encode(tx_nG6_db::select_projects_repartition($role, $by));
} elseif($type == 'project_distribution') {
$values = split(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$values = explode(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$by = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('by'));
$role = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('role'));
print json_encode(tx_nG6_db::select_projects_distribution($values, $by, $role));
} elseif($type == 'project_evolution') {
$values = split(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$values = explode(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$by = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('by'));
$role = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('role'));
$cumulate = false;
......@@ -820,7 +820,7 @@ class tx_nG6_eid {
print json_encode(tx_nG6_db::select_projects_evolution($values, $by, $role, $cumulate));
} elseif($type == 'data_distribution'){
$values = split(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$values = explode(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$by = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('by'));
$role = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('role'));
$get_analyzes = false;
......@@ -834,7 +834,7 @@ class tx_nG6_eid {
print json_encode(tx_nG6_db::select_storage_distribution($values, $by, $role, $get_analyzes, $octet));
} elseif($type == 'data_evolution'){
$values = split(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$values = explode(",", trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('values')));
$by = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('by'));
$role = trim(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('role'));
$get_analyzes = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment