Avoid errors when constant not defined
This commit is contained in:
parent
1df5ac2c54
commit
21bab288b4
@ -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">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user