Remove notice

This commit is contained in:
Michael RICOIS 2013-05-29 15:18:03 +00:00
parent 430935803b
commit cdbbbf66f6

View File

@ -183,7 +183,6 @@ class SurveillanceController extends Zend_Controller_Action
//Javascript
$theme = Zend_Registry::get('theme');
Zend_Registry::get('firebug')->info($theme->pathScript);
$this->view->headScript()
->appendFile($theme->pathScript.'/surveillance.js', 'text/javascript');
@ -209,12 +208,12 @@ class SurveillanceController extends Zend_Controller_Action
$filtre->detail = false;
$infos = $ws->getSurveillances($filtre);
Zend_Registry::get('firebug')->info($infos);
$surveillances = $infos->result->item;
if (count($surveillances)>0) {
if (property_exists($infos->result, 'item') && count($infos->result->item)>0) {
$titre = 'Ajouter une surveillance';
$texte = "L'entité est sous surveillance";
$item = $surveillances[0];
$item = $infos->result->item[0];
foreach($item->sources->item as $surv){
$tooltipTexte = '';