fixed error with sanitise functions in general.php