Skip to content

Commit dd0670f

Browse files
authored
Default to empty array if config parameter doesn't exist.
This will prevent the foreach from breaking.
1 parent a2c390b commit dd0670f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controllers/LfmController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public function error($error_type, $variables = [])
8383
*/
8484
public function applyIniOverrides()
8585
{
86-
$overrides = config('lfm.php_ini_overrides');
86+
$overrides = config('lfm.php_ini_overrides', []);
87+
8788
if ($overrides && is_array($overrides) && count($overrides) === 0) {
8889
return;
8990
}

0 commit comments

Comments
 (0)