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 ) { if ( $id != null ) {
try { try {
$result = $profilM->update($data, 'id='.$id); $result = $profilM->update($data, 'id='.$id);
} catch (Zend_Exception $e) { } catch (Zend_Db_Adapter_Exception $e) {
Zend_Registry::get('firebug')->info($e->getMessage()); Zend_Registry::get('firebug')->info($e->getMessage());
} }
} else { } else {
try { try {
$result = $profilM->insert($data); $result = $profilM->insert($data);
} catch (Zend_Exception $e) { } catch (Zend_Db_Adapter_Exception $e) {
Zend_Registry::get('firebug')->info($e->getMessage()); Zend_Registry::get('firebug')->info($e->getMessage());
} }
} }
if ( $result ){ if ( $result!=0 ){
echo ''; echo '';
} else { } else {
echo 'Erreur'; echo 'Erreur';