]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix suggestions by @artonage 33644/head
authorMicke Nordin <kano@sunet.se>
Mon, 16 May 2022 08:14:53 +0000 (10:14 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 22 Aug 2022 21:36:31 +0000 (21:36 +0000)
Signed-off-by: Micke Nordin <kano@sunet.se>
lib/base.php

index 87549ce6b0e45d1b0557a51098907cf88fcec764..b601e4b19f2e434d1b244b1fd9d31b0825980d17 100644 (file)
@@ -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();