Menu

#2 Trying a lookup for an absent letter (index)gives ugly error

open
None
5
2011-05-15
2011-05-15
Russianspi
No

Notice: Undefined property: AutoFill::$options in /var/www/webxicon/libs/autofill/class.autofill.php on line 39
Warning: Invalid argument supplied for foreach() in /var/www/webxicon/libs/autofill/class.autofill.php on line 39

This error comes from the fact that the Autofill script gives nothing to the javascript list that it creates. A better solution would be to have an alphabet array (for each language) designed in config_inc.php, and use javascript on the index page to prevent this, or to give a friendly error message on the lookup page explaining the situation.

Discussion


Log in to post a comment.