diff --git a/functions/functions.xhtml.php b/functions/functions.xhtml.php index 77fbffb0..cf647f3a 100644 --- a/functions/functions.xhtml.php +++ b/functions/functions.xhtml.php @@ -161,48 +161,54 @@ function xhtml_table($content,$fields,$head = false,$class = "tclass",$highlight * @param bool $js Whether to use JS or not * @param bool $indiv Whether to display in a div or not * @param array|bool $select The element to select manually (element,string) (not using selected=\'selected\' in array) + * @param bool $print Default is true, print the chooser otherwise return as a string * */ -function display_chooser($elements, $selectid, $var, $useblank = true, $pass = false, $js = true, $indiv = true, $selected = false) +function display_chooser($elements, $selectid, $var, $useblank = true, $pass = false, $js = true, $indiv = true, $selected = false, $print = true) { - if ($indiv) print "