Simplification

This commit is contained in:
Michael RICOIS 2011-05-02 07:20:13 +00:00
parent 3091e77299
commit 9c0e3cd10a

View File

@ -431,14 +431,9 @@ class Menu
switch($controller) {
case 'recherche':
break;
case 'finance':
if (!empty($this->siret)) { $params['siret'] = $this->siret; }
if (!empty($this->id)) { $params['id'] = $this->id; }
break;
case 'juridique':
case 'identite':
if (!empty($this->siret)) { $params['siret'] = $this->siret; }
if (!empty($this->id)) { $params['id'] = $this->id; }
break;
case 'finance':
case 'dirigeant':
if (!empty($this->siret)) { $params['siret'] = $this->siret; }
if (!empty($this->id)) { $params['id'] = $this->id; }