Debug enregistrement profil
This commit is contained in:
parent
3d9fc23707
commit
1f94f5de48
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user