Commit da5c5768 authored by Frank Bergmann's avatar Frank Bergmann

expr 0 + "" error, improving robustness of im_ad_hoc_query

parent 8aace95b
......@@ -1532,6 +1532,7 @@ ad_proc -public im_ad_hoc_query {
ns_log Notice "im_ad_hoc_query: col_name=$col_name, col=$col"
if {"" ne $sum && [regexp {^[0-9\,\.\-]+$} $col] && [string is double $col]} {
set col [regsub -all $thousand_separator $col ""]
if {"" eq $col} { set col 0.0 }
set sum [expr $sum + $col]
} else {
set sum ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment