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 ) {
|
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';
|
||||||
|
Loading…
Reference in New Issue
Block a user