Index: openacs-4/packages/logger/tcl/variable-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/logger/tcl/variable-procs.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/logger/tcl/variable-procs.tcl 23 Nov 2006 08:55:58 -0000 1.10 +++ openacs-4/packages/logger/tcl/variable-procs.tcl 15 Jan 2007 07:20:34 -0000 1.11 @@ -133,7 +133,7 @@ set variable_id [lindex $primary_variables 0] } - if { [exists_and_not_null variable_id] } { + if { ![exists_and_not_null variable_id] } { # Just get the first ever variable, most likely "Time" set variable_id [db_string select_first_variable_id {} -default {}] } Index: openacs-4/packages/logger/www/log.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/logger/www/log.tcl,v diff -u -r1.41 -r1.42 --- openacs-4/packages/logger/www/log.tcl 9 Oct 2006 20:27:24 -0000 1.41 +++ openacs-4/packages/logger/www/log.tcl 15 Jan 2007 07:20:35 -0000 1.42 @@ -500,7 +500,7 @@ -peeraddr [ad_conn peeraddr] \ -type "task" \ -send_email_p t \ - -to_party_ids [db_string assignees "select party_id from pm_task_assignment where task_id =:pm_task_id" -default ""] + -to_party_ids [db_list assignees "select party_id from pm_task_assignment where task_id =:pm_task_id"] } }