Commit 8d373d04 authored by catch's avatar catch

Issue #2233929 by alexpott, Berdir: drupal_set_time_limit() should only be...

Issue #2233929 by alexpott, Berdir: drupal_set_time_limit() should only be able to increase the time limit.
parent f61b0494
......@@ -1225,7 +1225,7 @@ function drupal_set_time_limit($time_limit) {
if (function_exists('set_time_limit')) {
$current = ini_get('max_execution_time');
// Do not set time limit if it is currently unlimited.
if ($current !== 0) {
if ($current != 0) {
@set_time_limit($time_limit);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment