Error reports PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/xxxxxxxx/public_html/xxxxxxxxx/inc/utils.inc.php on line 247
I thought it was just my site until i google it and lots of other sites have it.
http://www.boonex.us/search.php?search_result_mode=ext&DateOfBirth%5B0%5D=26&DateOfBirth%5B1%5D=65&Sex%5B0%5D=female&res_per_page=20&page=8
http://mundoliberal.es/d/search.php?LookingFor%5B0%5D=male&Sex%5B0%5D=male&DateOfBirth%5B0%5D=20&DateOfBirth%5B1%5D=34&res_per_page=10&page=10
http://chatizens.com/search.php?search_result_mode=ext&LookingFor%5B0%5D=male&Sex%5B0%5D=male&DateOfBirth%5B0%5D=19&DateOfBirth%5B1%5D=65&res_per_page=10&page=40
This is the function in inc/utils.inc.php
function htmlspecialchars_adv( $string ) {
return htmlspecialchars($string, ENT_COMPAT, 'UTF-8');
/*
$patterns = array( "/(?!&#\d{2,};)&/m", "/>/m", "/</m", "/\"/m", "/'/m" );
$replaces = array( "&", ">", "<", """, "'" );
return preg_replace( $patterns, $replaces, $string );
*/
}
Where is the function for htmlspecialchars?
The search seems to be working. Just tired of deleting the error_log everyday.
Thanks in advanced if anyone can fix this.