fix: redirection after creation contact

This commit is contained in:
Nicolas Domenech 2021-10-23 10:32:50 +02:00
parent ad2d411793
commit 9d927973a7

View File

@ -296,7 +296,7 @@ if (empty($reshook)) {
if (empty($error) && $id > 0) {
$db->commit();
if (!empty($backtopage)) {
$url = $backtopage;
$url = str_replace('__ID__', $id, $backtopage);
} else {
$url = 'card.php?id='.$id;
}