Explorar o código

Minor fix to avoid notice

José Loguercio %!s(int64=8) %!d(string=hai) anos
pai
achega
db536ab252
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main/badge/issued_all.php

+ 1 - 1
main/badge/issued_all.php

@@ -125,7 +125,7 @@ foreach ($userSkills as $index => $skillIssue) {
 
             if (!$profile && $parent['parent_id'] == 0) {
                 $profile = $skillLevelRepo->findAll();
-                $profile = $profile[0];
+                $profile = !empty($profile) ? $profile[0] : [];
             }
         }
     }