1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-07 08:05:25 +02:00

[ticket/11169] Skip migration if "Users" category has been deleted

or the module has already been moved to that category

PHPBB3-11169
This commit is contained in:
Oliver Schramm 2014-03-16 12:03:36 +01:00
parent fac814f8e7
commit dd7e8c8d1d

View File

@ -30,7 +30,9 @@ class acp_prune_users_module extends \phpbb\db\migration\migration
$acp_prune_users_parent = (int) $this->db->sql_fetchfield('parent_id');
$this->db->sql_freeresult($result);
return $acp_cat_users_id === $acp_prune_users_parent;
// Skip migration if "Users" category has been deleted
// or the module has already been moved to that category
return !$acp_cat_users_id || $acp_cat_users_id === $acp_prune_users_parent;
}
static public function depends_on()