Avoid errors when constant not defined

This commit is contained in:
Laurent Destailleur 2011-05-31 20:36:06 +00:00
parent 1df5ac2c54
commit 21bab288b4

View File

@ -37,6 +37,8 @@
*/
function ajax_autocompleter($selected='',$htmlname,$url,$option='',$minLength=2,$autoselect=0)
{
if (empty($minLength)) $minLength=1;
$script = '<input type="hidden" name="'.$htmlname.'" id="'.$htmlname.'" value="'.$selected.'" />';
$script.= '<script type="text/javascript">';