1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-22 16:22:58 +02:00

[ticket/13740] Fix itteration problems, implement class name aware collections

PHPBB3-13740
This commit is contained in:
Mate Bartus
2015-07-09 19:08:28 +02:00
parent b284e31a9e
commit e967f3c1a8
12 changed files with 88 additions and 83 deletions

View File

@@ -137,9 +137,9 @@ class installer
foreach ($this->installer_modules as $name => $module)
{
// Skip forward until the current task is reached
if (!empty($task_name) && !$module_found)
if (!$module_found)
{
if ($module_name === $name)
if ($module_name === $name || empty($module_name))
{
$module_found = true;
}
@@ -245,7 +245,7 @@ class installer
/**
* Recover install progress
*
* @return int Index of the next installer module to execute
* @return string Index of the next installer module to execute
*/
protected function recover_progress()
{