From b7acecd006ab21196039797074126e47f180af4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 29 Apr 2024 14:00:03 +0200 Subject: [PATCH] fix: Fix default values for ini var in lib/base.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base.php b/lib/base.php index 891161ff0c6..14437267052 100644 --- a/lib/base.php +++ b/lib/base.php @@ -662,11 +662,11 @@ class OC { //this doesn´t work always depending on the webserver and php configuration. //Let´s try to overwrite some defaults if they are smaller than 1 hour - if (intval(@ini_get('max_execution_time') ?? 0) < 3600) { + if (intval(@ini_get('max_execution_time') ?: 0) < 3600) { @ini_set('max_execution_time', strval(3600)); } - if (intval(@ini_get('max_input_time') ?? 0) < 3600) { + if (intval(@ini_get('max_input_time') ?: 0) < 3600) { @ini_set('max_input_time', strval(3600)); }