+ // if this is a test, send it only to the admin(s)
+ // admin_email might be a comma separated list, but we need "a@b','c@d','e@f
+ if (intval($_REQUEST['test'])) {
+ $email = $a->config['admin_email'];
+ $email = "'" . str_replace([" ",","], ["","','"], $email) . "'";
+ }
+ $sql_extra = ((intval($_REQUEST['test'])) ? sprintf(" AND `email` in ( %s )", $email) : '');