Cosmetic : don't go if nothing is asked

This commit is contained in:
sparkyx 2022-08-21 16:07:22 +02:00
parent ebd93a1e68
commit 1cb2e43b36

View file

@ -58,7 +58,7 @@ if ( $cn->get_value("select count(*) from profile join profile_user using (p_id)
where user_name=$1 and with_direct_form=true",array($_SESSION[SESSION_KEY.'g_user'])) ==1):
?>
<div id="direct">
<form method="get">
<form method="get" onsubmit="if (document.getElementById('ac').value.trim() =='') {return false;} else {return true;}">
<?php echo $http->request('ac',"string", '')?>
<?php echo Dossier::hidden()?>
<?php