Преглед на файлове

Minor fix to avoid notice

José Loguercio преди 8 години
родител
ревизия
db536ab252
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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] : [];
             }
         }
     }