From 58964e7bcd8b831d50694cf8a3e2192d45156e86 Mon Sep 17 00:00:00 2001 From: Will-thom <116388885+Will-thom@users.noreply.github.com> Date: Sat, 23 May 2026 01:21:06 -0300 Subject: [PATCH] Fix phpini check for null ini values --- system/Security/CheckPhpIni.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Security/CheckPhpIni.php b/system/Security/CheckPhpIni.php index 949c1d10aa48..d1ab3dfccda0 100644 --- a/system/Security/CheckPhpIni.php +++ b/system/Security/CheckPhpIni.php @@ -182,8 +182,8 @@ private static function checkIni(?string $argument = null): array foreach ($items as $key => $values) { $hasKeyInIni = array_key_exists($key, $ini); $output[$key] = [ - 'global' => $hasKeyInIni ? $ini[$key]['global_value'] : 'disabled', - 'current' => $hasKeyInIni ? $ini[$key]['local_value'] : 'disabled', + 'global' => $hasKeyInIni ? (string) ($ini[$key]['global_value'] ?? '') : 'disabled', + 'current' => $hasKeyInIni ? (string) ($ini[$key]['local_value'] ?? '') : 'disabled', 'recommended' => $values['recommended'] ?? '', 'remark' => $values['remark'] ?? '', ];