From 748d9e17dcc41e2fb06b9b60a1a711786708fba2 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 25 Jan 2013 07:58:46 +0000 Subject: [PATCH] issue #0001350 : Init doublon --- application/controllers/ProfilController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/ProfilController.php b/application/controllers/ProfilController.php index 1473e771..3800cb21 100644 --- a/application/controllers/ProfilController.php +++ b/application/controllers/ProfilController.php @@ -45,7 +45,10 @@ class ProfilController extends Zend_Controller_Action $profilM = new Application_Model_Profil(); $profil = $profilM->find($id); $criteres = json_decode($profil->current()->criteres, true); - $doublon = json_decode($profil->current->doublon, true); + $doublon = array(); + if( $profil->current->doublon!='' ) { + $doublon = json_decode($profil->current->doublon, true); + } $this->view->assign('doublon', $doublon); $tmp = array(); foreach ($criteres as $critere) {