@@ -73,7 +73,7 @@ |
||
| 73 | 73 | /** |
| 74 | 74 | * @param string $repID |
| 75 | 75 | * |
| 76 | - * @return array |
|
| 76 | + * @return Response |
|
| 77 | 77 | * @Route("/repCaches/{repID}", name="support_reported_cache") |
| 78 | 78 | */ |
| 79 | 79 | public function search_by_report_id(string $repID) |
@@ -270,7 +270,9 @@ |
||
| 270 | 270 | $entity->comment = (string) $data['comment']; |
| 271 | 271 | $entity->cache = $this->cachesRepository->fetchOneBy(['cache_id' => $entity->cacheid]); |
| 272 | 272 | $entity->user = $this->userRepository->fetchOneById($entity->userid); |
| 273 | - if ($entity->adminid) $entity->admin = $this->userRepository->fetchOneById($entity->adminid); |
|
| 273 | + if ($entity->adminid) { |
|
| 274 | + $entity->admin = $this->userRepository->fetchOneById($entity->adminid); |
|
| 275 | + } |
|
| 274 | 276 | $entity->reportReason = $this->cacheReportReasonsRepository->fetchOneBy(['id' => $entity->reason]); |
| 275 | 277 | $entity->reportStatus = $this->cacheReportStatusRepository->fetchOneBy(['id' => $entity->status]); |
| 276 | 278 | |