From 1f94f5de48317e8d6fbad9f17e6f15b68d9dcffb Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 29 Jan 2013 14:28:12 +0000 Subject: [PATCH] Debug enregistrement profil --- application/controllers/ProfilController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/ProfilController.php b/application/controllers/ProfilController.php index d1f68649..451dd964 100644 --- a/application/controllers/ProfilController.php +++ b/application/controllers/ProfilController.php @@ -103,18 +103,18 @@ class ProfilController extends Zend_Controller_Action if ( $id != null ) { try { $result = $profilM->update($data, 'id='.$id); - } catch (Zend_Exception $e) { + } catch (Zend_Db_Adapter_Exception $e) { Zend_Registry::get('firebug')->info($e->getMessage()); } } else { try { $result = $profilM->insert($data); - } catch (Zend_Exception $e) { + } catch (Zend_Db_Adapter_Exception $e) { Zend_Registry::get('firebug')->info($e->getMessage()); } } - if ( $result ){ + if ( $result!=0 ){ echo ''; } else { echo 'Erreur';