Commit 75167a1a authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 9ed7cbbb
......@@ -141,6 +141,11 @@ class tx_nG6_db {
// get all project analysis the usergroup can access to
if ($get_analyzes) {
if ($usergroup != "0") {
$where = 'tx_nG6_project.uid IN ('.implode(",",$project_list_final).') AND tx_nG6_analyze.date BETWEEN '.$date_cursors.' AND '.$date_cursore;
} else {
$where = 'tx_nG6_analyze.date BETWEEN '.$date_cursors.' AND '.$date_cursore;
}
$queryParts = array(
'SELECT' => 'tx_nG6_analyze.uid as analyze_id',
'FROM' => 'tx_nG6_project '
......@@ -151,11 +156,6 @@ class tx_nG6_db {
'ORDERBY' => '',
'LIMIT' => ''
);
if ($usergroup != "0") {
$where = 'tx_nG6_project.uid IN ('.implode(",",$project_list_final).') AND tx_nG6_analyze.date BETWEEN '.$date_cursors.' AND '.$date_cursore;
} else {
$where = 'tx_nG6_analyze.date BETWEEN '.$date_cursors.' AND '.$date_cursore;
}
$res = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryParts);
while($res_row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$current_size += tx_nG6_db::get_analysis_size($res_row['analyze_id'], $data_folder);
......
Supports Markdown
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