From a1d803c5314bd5aef83a3bd43c441cf4f94bc0b7 Mon Sep 17 00:00:00 2001 From: Jan Linhart Date: Mon, 2 Jan 2017 14:27:30 +0100 Subject: [PATCH] Use set_time_limit function only if it's enabled --- app/console | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/console b/app/console index 39a78cf0df9..3001dc5f404 100755 --- a/app/console +++ b/app/console @@ -8,7 +8,9 @@ date_default_timezone_set('UTC'); // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information //umask(0000); -set_time_limit(0); +if (function_exists('set_time_limit')) { + set_time_limit(0); +} defined('IN_MAUTIC_CONSOLE') or define('IN_MAUTIC_CONSOLE', 1);