Skip to content

Commit

Permalink
Corrige quando nenhuma instituição está ativa
Browse files Browse the repository at this point in the history
  • Loading branch information
edersoares committed Mar 11, 2019
1 parent 146ad31 commit f0e89c9
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -39,6 +39,10 @@ public function up()
->where('active_on_ieducar', 1)
->first();

if (empty($setting)) {
return;
}

$customLabels = json_decode($setting->custom_labels, true);
$customLabels = is_array($customLabels) ? array_filter($customLabels) : [];

Expand Down

0 comments on commit f0e89c9

Please sign in to comment.