From 0ace1831f48be9f324635fba0d2817291a89d037 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 16 May 2022 10:14:53 +0200 Subject: [PATCH] Fix suggestions by @artonage Signed-off-by: Micke Nordin --- lib/base.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/base.php b/lib/base.php index 5695bbe06f9..844afb03af0 100644 --- a/lib/base.php +++ b/lib/base.php @@ -628,17 +628,17 @@ 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)); } //try to set the maximum execution time to the largest time limit we have if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { - @set_time_limit(strval(max(intval(@ini_get('max_execution_time')),intval(@ini_get('max_input_time'))))); + @set_time_limit(max(intval(@ini_get('max_execution_time')), intval(@ini_get('max_input_time')))); } self::setRequiredIniValues(); -- 2.39.5