when profile delete do not show the detail
This commit is contained in:
parent
deb3adaf39
commit
3c366a3090
1 changed files with 6 additions and 2 deletions
|
|
@ -167,16 +167,16 @@ if (isset($_POST['delete_profil']))
|
|||
$cn->start();
|
||||
if ($p_id == 1)
|
||||
{
|
||||
throw new Exception('On ne peut effacer le profil par défaut');
|
||||
throw new Exception('On ne peut pas effacer le profil par défaut');
|
||||
}
|
||||
$new_id = $cn->get_value("delete from profile
|
||||
where p_id=$1 ", array($p_id));
|
||||
$cn->commit();
|
||||
|
||||
}
|
||||
catch (Exception $exc)
|
||||
{
|
||||
echo alert($exc->getMessage());
|
||||
;
|
||||
$cn->rollback();
|
||||
}
|
||||
}
|
||||
|
|
@ -346,4 +346,8 @@ if (isset($_POST['p_id']))
|
|||
require_once 'ajax_get_profile.php';
|
||||
}
|
||||
echo '</div>';
|
||||
if ( isset($_POST['delete_profil'] ))
|
||||
{
|
||||
echo create_script(" $('detail_profile').hide()");
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue