For some reason, our country code drop down menu is not working causing the signup page not to work. In my error log, it listed the error on page common.inc.php on line 126 -- this is the code that is currently listed there: function smarty_function_country_options($params, &$smarty){ global $db; $ret = ""; foreach (db_getCountryList($add_empty=true) as $c => $t){ $sel = ($c == $params['selected']) ? 'selected="selected"' : ''; $ret .= "<option value='".htmlspecialchars($c)."' $sel>".htmlspecialchars($t)."</option>\n"; } return $ret; Can anyone see the problem? Thanks in advance.
Oh, this is the exact error message: <b>WARNING:</b> Invalid argument supplied for foreach() in line 126 of file C:\Inetpub\vhosts\workoutsondemand.com\httpdocs\amember\common.inc.php