Commit 7fbc2280 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix view count to include group/institution views


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 30ee7de9
......@@ -186,7 +186,7 @@ function site_data_current() {
return array(
'users' => count_records_select('usr', 'id > 0 AND deleted = 0'),
'groups' => count_records('group', 'deleted', 0),
'views' => count_records_select('view', 'owner <> 0'),
'views' => count_records_select('view', 'owner != 0 OR owner IS NULL'),
'rank' => array(
'users' => get_config('usersrank'),
'groups' => get_config('groupsrank'),
......
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