Check that set_time_limit is not disabled before calling it

Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
This commit is contained in:
Ko-
2017-03-11 17:04:21 +01:00
parent 801b600ec3
commit 0024b67aaf
8 changed files with 25 additions and 8 deletions
+3 -1
View File
@@ -48,7 +48,9 @@ try {
require_once __DIR__ . '/lib/base.php';
// set to run indefinitely if needed
set_time_limit(0);
if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
@set_time_limit(0);
}
if (!OC::$CLI) {
echo "This script can be run from the command line only" . PHP_EOL;