From f0a4de499bac51edeb5dfc6c7952c7933e9e4a67 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Nov 2008 18:40:10 +0000 Subject: [PATCH] "fix for boolean options" --- phpgwapi/inc/class.html.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index b37547743e..1e32984b12 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -126,8 +126,8 @@ class html { foreach($options as $option => $value) { - $opt_out .= 'this.T_'.strtoupper($option).'='.(is_numeric($value)?$value:"'".str_replace(array("'",'"'),array("\\'",'"'),$value)."'").'; '; - + $opt_out .= 'this.T_'.strtoupper($option).'='.(is_bool($value)?($value?'true':'false'): + (is_numeric($value)?$value:"'".str_replace(array("'",'"'),array("\\'",'"'),$value)."'")).'; '; } } if ($text === False) return ' onmouseover="'.$opt_out.'return escape(this.innerHTML);"';