Skip to content

Commit

Permalink
Avoid empty variables errors which break the service
Browse files Browse the repository at this point in the history
  • Loading branch information
insthync committed Aug 9, 2021
1 parent a7a1c4b commit b9f907b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/ClanBoss.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function CreateClanEvent()
$clanId,
$createDate,
));
if ($clanEventCreation) {
if ($clanEventCreation || empty($gameData['clanBossStages'])) {
// Already create events, skip it
return;
}
Expand Down
2 changes: 1 addition & 1 deletion functions/RaidBoss.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function CreateRaidEvent()
'createDate = ?',
$createDate,
));
if ($raidEventCreation) {
if ($raidEventCreation || empty($gameData['raidBossStages'])) {
// Already create events, skip it
return;
}
Expand Down

0 comments on commit b9f907b

Please sign in to comment.