Index: openacs-4/packages/imsld/tcl/imsld-condition-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/tcl/imsld-condition-procs.tcl,v diff -u -r1.21 -r1.22 --- openacs-4/packages/imsld/tcl/imsld-condition-procs.tcl 3 Nov 2006 14:39:02 -0000 1.21 +++ openacs-4/packages/imsld/tcl/imsld-condition-procs.tcl 21 Feb 2007 16:34:26 -0000 1.22 @@ -57,10 +57,13 @@ } else { foreach elseNode $elseNodes { #an else node may contain an expression or another if_then_else - if { [string eq [ [$elseNode selectNodes {*[position()=1] } ] localName] "if" ] } { - imsld::condition::execute -run_id $run_id -condition $elseNode -user_id $user_id - } else { - imsld::statement::execute -run_id $run_id -statement [$elseNode childNodes] -user_id $user_id + + if {[$elseNode hasChildNodes]} { + if { [string eq [ [$elseNode selectNodes {*[position()=1] } ] localName] "if" ] } { + imsld::condition::execute -run_id $run_id -condition $elseNode -user_id $user_id + } else { + imsld::statement::execute -run_id $run_id -statement [$elseNode childNodes] -user_id $user_id + } } } }