Debug enregistrement profil

This commit is contained in:
Michael RICOIS 2013-01-29 14:28:12 +00:00
parent 3d9fc23707
commit 1f94f5de48

View File

@ -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';