X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4c3aa343fd0a7d708c69b0f22ae30259314427df..00b04fd2b07cfd576ffb038c750bf955ca7f87a6:/WEB-INF/lib/ttTeamHelper.class.php diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 46a65e0d..febf0753 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -522,7 +522,7 @@ class ttTeamHelper { $result = array(); $sql = "select c.id, c.cron_spec, c.email, c.report_condition, fr.name from tt_cron c left join tt_fav_reports fr on (fr.id = c.report_id) - where c.team_id = $team_id and c.status is not null"; + where c.team_id = $team_id and c.status = 1 and fr.status = 1"; $res = $mdb2->query($sql); $result = array(); if (!is_a($res, 'PEAR_Error')) {