X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/46721cbd0895d4aa40df4ee13f2f0dede1d6a6a4..e0fcf2e0ee45de5680010e1d26e53ea7a8dc2f8a:/WEB-INF/lib/ttTeamHelper.class.php diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index e4e3b175..febf0753 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -520,9 +520,9 @@ class ttTeamHelper { $mdb2 = getConnection(); $result = array(); - $sql = "select c.id, c.cron_spec, c.email, fr.name from tt_cron c + $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')) {