X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttTimesheetHelper.class.php;h=17119edace1c8eb78ffaca461bc0c4a060d2227d;hb=237f5fae68a9410971ce1c4895a07fe2fa0fbd52;hp=0afefa8048fe2205fe406d539032aa043ad8f2ef;hpb=b53f880dcd61797fd2e6609477add03ca757d813;p=timetracker.git diff --git a/WEB-INF/lib/ttTimesheetHelper.class.php b/WEB-INF/lib/ttTimesheetHelper.class.php index 0afefa80..17119eda 100644 --- a/WEB-INF/lib/ttTimesheetHelper.class.php +++ b/WEB-INF/lib/ttTimesheetHelper.class.php @@ -115,8 +115,7 @@ class ttTimesheetHelper { $group_id = $user->getGroup(); $org_id = $user->org_id; - $includeFiles = $user->isPluginEnabled('at'); - if ($includeFiles) { + if ($user->isPluginEnabled('at')) { $filePart = ', if(Sub1.entity_id is null, 0, 1) as has_files'; $fileJoin = " left join (select distinct entity_id from tt_files". " where entity_type = 'timesheet' and group_id = $group_id and org_id = $org_id and status = 1) Sub1". @@ -149,8 +148,7 @@ class ttTimesheetHelper { $group_id = $user->getGroup(); $org_id = $user->org_id; - $includeFiles = $user->isPluginEnabled('at'); - if ($includeFiles) { + if ($user->isPluginEnabled('at')) { $filePart = ', if(Sub1.entity_id is null, 0, 1) as has_files'; $fileJoin = " left join (select distinct entity_id from tt_files". " where entity_type = 'timesheet' and group_id = $group_id and org_id = $org_id and status = 1) Sub1".