- fwrite($this->file, $this->indentation." <log>\n");
- $key = 0;
- foreach ($this->userMap as $key => $value) {
- $user_id = $key;
- $records = ttTimeHelper::getAllRecords($user_id);
+ $records = $this->getRecordsFromTable('tt_log');
+ if (count($records) > 0) {
+ fwrite($this->file, $this->indentation." <log>\n");
+ $key = 0;