[ticket/15871] Fix PHP 7.1+ warning in ACR extensions module

PHPBB3-15871
This commit is contained in:
rxu 2018-11-11 15:21:36 +07:00
parent f4063e475d
commit 720477a9da
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -57,7 +57,7 @@ class acp_extensions
$ext_name = $this->request->variable('ext_name', ''); $ext_name = $this->request->variable('ext_name', '');
// What is a safe limit of execution time? Half the max execution time should be safe. // What is a safe limit of execution time? Half the max execution time should be safe.
$safe_time_limit = (ini_get('max_execution_time') / 2); $safe_time_limit = ((int) ini_get('max_execution_time') / 2);
$start_time = time(); $start_time = time();
// Cancel action // Cancel action