Fix bug when we try to update an inexistant extension

This commit is contained in:
Dany De Bontridder 2010-07-17 22:41:54 +00:00
parent 8451649f15
commit 431f39daab

View file

@ -176,6 +176,7 @@ switch($action) {
*
*----------------------------------------------------------------------*/
case 'se':
ob_start();
$ext=new Extension($cn);
$ext->fromArray($_POST);
try {
@ -184,6 +185,8 @@ case 'se':
}catch (Exception $e) {
$r=alert(j( $e->getMessage()),true);
}
$html=ob_get_contents();
ob_clean();
break;
case 're':
$ext=new Extension($cn);