Skip to content

Commit 1d8da5a

Browse files
committed
fix count() in LfmController
1 parent 5ed28d5 commit 1d8da5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/controllers/LfmController.php

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

90-
foreach (config('lfm.php_ini_overrides') as $key => $value) {
91+
foreach ($overrides as $key => $value) {
9192
if ($value && $value != 'false') {
9293
ini_set($key, $value);
9394
}

0 commit comments

Comments
 (0)