Andy
11-04-07, 17:08
If you just hit the search button without entering a keyword/phrase the api throws this error:
Warning: Invalid argument supplied for foreach() in /home/www/username/WWW.MYDOMAIN.COM/includes/elements/search_box.php on line 101
Warning: Invalid argument supplied for foreach() in /home/www/username/WWW.MYDOMAIN.COM/includes/elements/hot_picks.php on line 55
Warning: Invalid argument supplied for foreach() in /home/www/username/WWW.MYDOMAIN.COM/includes/elements/featured_merchants.php on line 57
Not good. it gives too much info about the root structure. I know we can turn off error reporting in constants.inc.php, but still, the variable should be set with something before it's passed.
Also, the warning image alt text has structural info in it:
The image “http://www.MYDOMAIN.COM/templates/template_2b_red//images/warning_icon.gif” cannot be displayed, because it contains errors.
Warning: Invalid argument supplied for foreach() in /home/www/username/WWW.MYDOMAIN.COM/includes/elements/search_box.php on line 101
Warning: Invalid argument supplied for foreach() in /home/www/username/WWW.MYDOMAIN.COM/includes/elements/hot_picks.php on line 55
Warning: Invalid argument supplied for foreach() in /home/www/username/WWW.MYDOMAIN.COM/includes/elements/featured_merchants.php on line 57
Not good. it gives too much info about the root structure. I know we can turn off error reporting in constants.inc.php, but still, the variable should be set with something before it's passed.
Also, the warning image alt text has structural info in it:
The image “http://www.MYDOMAIN.COM/templates/template_2b_red//images/warning_icon.gif” cannot be displayed, because it contains errors.