Skip to content

Commit 58964e7

Browse files
committed
Fix phpini check for null ini values
1 parent e61e52f commit 58964e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Security/CheckPhpIni.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ private static function checkIni(?string $argument = null): array
182182
foreach ($items as $key => $values) {
183183
$hasKeyInIni = array_key_exists($key, $ini);
184184
$output[$key] = [
185-
'global' => $hasKeyInIni ? $ini[$key]['global_value'] : 'disabled',
186-
'current' => $hasKeyInIni ? $ini[$key]['local_value'] : 'disabled',
185+
'global' => $hasKeyInIni ? (string) ($ini[$key]['global_value'] ?? '') : 'disabled',
186+
'current' => $hasKeyInIni ? (string) ($ini[$key]['local_value'] ?? '') : 'disabled',
187187
'recommended' => $values['recommended'] ?? '',
188188
'remark' => $values['remark'] ?? '',
189189
];

0 commit comments

Comments
 (0)