X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttChartHelper.class.php;h=70bb534b48c2e403ee30ea6c4a1ce672853da3ae;hb=cd967f39df8f99e94a150233825d2505b72ae6f4;hp=5d1e8e5c200f787284ae72b63274aa1411557b7f;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/lib/ttChartHelper.class.php b/WEB-INF/lib/ttChartHelper.class.php index 5d1e8e5c..70bb534b 100644 --- a/WEB-INF/lib/ttChartHelper.class.php +++ b/WEB-INF/lib/ttChartHelper.class.php @@ -72,12 +72,12 @@ class ttChartHelper { $sql = "select p.name as name, sum(time_to_sec(l.duration)) as time from tt_log l inner join tt_projects p on (p.id = l.project_id) where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.project_id"; - } else if (CHART_TASKS == $ch_type) { + } elseif (CHART_TASKS == $ch_type) { // Data for tasks. $sql = "select t.name as name, sum(time_to_sec(l.duration)) as time from tt_log l inner join tt_tasks t on (t.id = l.task_id) where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.task_id"; - } else if (CHART_CLIENTS == $ch_type) { + } elseif (CHART_CLIENTS == $ch_type) { // Data for clients. $sql = "select coalesce(c.name, 'NULL') as name, sum(time_to_sec(l.duration)) as time from tt_log l left join tt_clients c on (c.id = l.client_id) @@ -135,4 +135,3 @@ class ttChartHelper { return $result; } } -?> \ No newline at end of file