Index: openacs-4/packages/logger/www/log.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/logger/www/log.tcl,v diff -u -N -r1.10 -r1.11 --- openacs-4/packages/logger/www/log.tcl 28 Aug 2003 09:45:30 -0000 1.10 +++ openacs-4/packages/logger/www/log.tcl 2 Sep 2003 08:57:38 -0000 1.11 @@ -61,6 +61,11 @@ # Default the variable we are logging in to the primary variable of the project if { ![exists_and_not_null variable_id] } { set variable_id [logger::project::get_primary_variable -project_id $project_id] + + if { [empty_string_p $variable_id] } { + ad_return_error "Project has no variable" "An administrator needs to associate a variable, such as time or expense, to this project before any logging can be done." + ad_script_abort + } } # We need project and variable names