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:
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user