Fix set_time_limit system policy error (#1103)

This commit is contained in:
RainLoop Team 2016-07-13 22:48:18 +03:00
parent 5a01b59d40
commit 6e6dd31ad4
2 changed files with 7 additions and 2 deletions

View file

@ -1292,7 +1292,12 @@ END;
if ($bValidateAction && $iTimeToReset < \time() - $iResetTimer)
{
$iResetTimer = \time();
\set_time_limit($iTimeToAdd);
if (!@\set_time_limit($iTimeToAdd))
{
$bValidateAction = false;
return false;
}
return true;
}