Commit 90b1fda5 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

fixed so get_views returns views from groups that aren't deleted, rather than jus those that are

parent 2e901247
......@@ -1437,7 +1437,7 @@ function get_views($users, $userlooking=null, $limit=5) {
AND ( v.startdate IS NULL OR v.startdate < ? )
AND ( v.stopdate IS NULL OR v.stopdate > ? )
',
array($userlooking, 1, $dbnow, $dbnow)
array($userlooking, 0, $dbnow, $dbnow)
)
) {
foreach ($results as &$row) {
......
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