Commit ee753248 authored by Frank Bergmann's avatar Frank Bergmann

Added safeguard to avoid errors if project_id is null

parent 9c57af67
......@@ -131,6 +131,7 @@ ad_proc -public im_project_has_type_helper { project_id project_type } {
ad_proc -public im_project_main_project { project_id } {
Returns the project_id of the project's top level main project.
} {
if {"" eq $project_id} { return "" }
im_security_alert_check_integer -location "im_project_main_project: project_id" -value $project_id
return [util_memoize [list db_string project_main_project "
select 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