Index: openacs-4/packages/acs-admin/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/index.tcl,v diff -u -r1.16.2.3 -r1.16.2.4 --- openacs-4/packages/acs-admin/www/index.tcl 17 Nov 2016 00:02:58 -0000 1.16.2.3 +++ openacs-4/packages/acs-admin/www/index.tcl 24 Jan 2017 08:56:09 -0000 1.16.2.4 @@ -8,7 +8,9 @@ set page_title [ad_conn instance_name] set package_keys '[join [subsite::package_keys] ',']' set subsite_number [db_string count_subsites [subst { - select count(*) from apm_packages where package_key in ($package_keys) + select count(p.package_id) from apm_packages p, site_nodes s + where package_key in ($package_keys) + and s.object_id = p.package_id }]] db_multirow -extend { admin_url global_param_url } packages installed_packages {} {