aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáté Bartus <mate.bartus@gmail.com>2016-04-11 18:18:09 +0200
committerMáté Bartus <mate.bartus@gmail.com>2016-04-11 18:18:09 +0200
commitf41c7bd2b16906293498b4eb4073407e57a3567f (patch)
treea625e9d0e0a1589879f4758b337874f5cc7e3e72
parentd89b75bd36e9a952462c6c268242fc63cd838f25 (diff)
downloadforums-f41c7bd2b16906293498b4eb4073407e57a3567f.tar
forums-f41c7bd2b16906293498b4eb4073407e57a3567f.tar.gz
forums-f41c7bd2b16906293498b4eb4073407e57a3567f.tar.bz2
forums-f41c7bd2b16906293498b4eb4073407e57a3567f.tar.xz
forums-f41c7bd2b16906293498b4eb4073407e57a3567f.zip
[ticket/14590] Prevent refresh requests after the last tasks in modules
PHPBB3-14590
-rw-r--r--phpBB/phpbb/install/module_base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/install/module_base.php b/phpBB/phpbb/install/module_base.php
index 527447b4a1..93c10bd656 100644
--- a/phpBB/phpbb/install/module_base.php
+++ b/phpBB/phpbb/install/module_base.php
@@ -172,7 +172,7 @@ abstract class module_base implements module_interface
$this->iohandler->send_response();
// Stop execution if resource limit is reached
- if ($this->install_config->get_time_remaining() <= 0 || $this->install_config->get_memory_remaining() <= 0)
+ if ($iterator->valid() && ($this->install_config->get_time_remaining() <= 0 || $this->install_config->get_memory_remaining() <= 0))
{
throw new resource_limit_reached_exception();
}