Commit bfc44290 authored by Frank Bergmann's avatar Frank Bergmann

- fixed a bug if there is a non-existing project_id

parent eb108337
......@@ -145,7 +145,6 @@ if { $start_at == "" && $project_id != 0 } {
}
if {"" == $start_at} {
set start_at $todays_date
ad_return_complaint 1 todays_date
}
if {"" == $start_at} {
ad_return_complaint 1 "Unable to determine start date for project \#$project_id:<br>
......@@ -165,12 +164,8 @@ if { $start_at == "" } {
# ad_return_complaint 1 "start_at=$start_at"
}
# ad_return_complaint 1 "start_at=$start_at"
if { $project_id != 0 } {
set project_name [db_string get_project_name "select project_name from im_projects where project_id = :project_id"]
set project_name [db_string get_project_name "select project_name from im_projects where project_id = :project_id" -default "No Name for $project_id"]
}
# ---------------------------------------------------------------
......
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