Fix bug when we try to update an inexistant extension
This commit is contained in:
parent
8451649f15
commit
431f39daab
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue