diff --git a/html/ajax_card.php b/html/ajax_card.php
index 38e096164..d5d2ead3e 100644
--- a/html/ajax_card.php
+++ b/html/ajax_card.php
@@ -79,7 +79,7 @@ set_language();
/*
*echo a warning if disconnected
*/
-ajax_disconnected($div);
+ajax_disconnected($_REQUEST['ctl']);
$cn=new Database($gDossier);
$user=new User($cn);