Did you include include/lib/vital_funcs.inc.php in the script that calls this function?