Index: openacs-4/packages/acs-api-browser/www/display-sql.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-api-browser/www/display-sql.tcl,v diff -u -r1.4.10.1 -r1.4.10.2 --- openacs-4/packages/acs-api-browser/www/display-sql.tcl 15 Sep 2013 11:39:02 -0000 1.4.10.1 +++ openacs-4/packages/acs-api-browser/www/display-sql.tcl 16 Sep 2013 20:38:39 -0000 1.4.10.2 @@ -35,7 +35,9 @@ from apm_package_version_info where version_id = :version_id } - lappend context [list "package-view?version_id=$version_id&kind=sql_files" "$pretty_name $version_name"] + if {[info exists pretty_name]} { + lappend context [list "package-view?version_id=$version_id&kind=sql_files" "$pretty_name $version_name"] + } } lappend context [file tail $url]