Explorar o código

Fix warnings in manual assignation of skill to user

Yannick Warnier %!s(int64=7) %!d(string=hai) anos
pai
achega
0edd036565
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      main/badge/assign.php

+ 1 - 0
main/badge/assign.php

@@ -90,6 +90,7 @@ if ($profile) {
     $levels = $skillLevelRepo->findBy([
         'profile' => $profileId
     ]);
+    $profileLevels = [];
 
     foreach ($levels as $level) {
         $profileLevels[$level->getPosition()][$level->getId()] = $level->getName();