Index: openacs-4/packages/acs-templating/tcl/query-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/query-procs.tcl,v diff -u -r1.34.2.2 -r1.34.2.3 --- openacs-4/packages/acs-templating/tcl/query-procs.tcl 10 Sep 2015 07:54:15 -0000 1.34.2.2 +++ openacs-4/packages/acs-templating/tcl/query-procs.tcl 5 Sep 2016 11:22:22 -0000 1.34.2.3 @@ -766,7 +766,7 @@ set index [lindex $args 0] set column [lindex $args 1] # Set an array reference if no column is specified - if {$column eq {}} { + if {$column eq ""} { # If -local was specified, the upvar is done with a relative stack frame # index, and we must take into account the fact that the uplevel moves up @@ -780,9 +780,14 @@ } } else { - # If a column is specified, just return the value for it - upvar $multirow_level_up $name:$index arr - return $arr($column) + # If a column is specified, just return the value for it + upvar $multirow_level_up $name:$index arr + if {[info exists arr($column)]} { + return $arr($column) + } else { + ns_log warning "can't obtain template variable form ${name}:${index}: $column" + return "" + } } }