Commit e830b22d authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fixe a bug when the plugin is not configured

parent 1e492367
......@@ -105,16 +105,6 @@ class tx_nG6_pi1 extends tslib_pibase {
$content = tx_nG6_upgrade::upgrade($this->piVars['upgrade']);
} else {
switch((string)$this->conf['view']) {
// If the plugin is configured to display results by project
case 'project':
if ($this->piVars['analyze_id']) {
$content .= $this->pi_analyze_view();
} elseif ($this->piVars['project_id'] && $this->piVars['run_id']) {
$content .= $this->pi_run_view();
} else {
$content .= $this->pi_project_view();
}
break;
// If the plugin is configured to display results by run
case 'run':
if ($this->piVars['analyze_id']) {
......@@ -125,7 +115,13 @@ class tx_nG6_pi1 extends tslib_pibase {
break;
// If the plugin is not configured, display by project is default
default:
$content .= $this->pi_project_view();
if ($this->piVars['analyze_id']) {
$content .= $this->pi_analyze_view();
} elseif ($this->piVars['project_id'] && $this->piVars['run_id']) {
$content .= $this->pi_run_view();
} else {
$content .= $this->pi_project_view();
}
break;
}
}
......
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