1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-18 23:51:49 +02:00

Merge pull request #3409 from Senky/ticket/11424

[ticket/11424] Quick-Mod Tools race condition results in NO_MODE
This commit is contained in:
Joas Schilling
2015-04-06 11:31:53 +02:00

View File

@@ -226,6 +226,31 @@ class mcp_main
break;
default:
if ($quickmod)
{
switch ($action)
{
case 'lock':
case 'unlock':
case 'make_announce':
case 'make_sticky':
case 'make_global':
case 'make_normal':
case 'make_onindex':
case 'move':
case 'fork':
case 'delete_topic':
trigger_error('TOPIC_NOT_EXIST');
break;
case 'lock_post':
case 'unlock_post':
case 'delete_post':
trigger_error('POST_NOT_EXIST');
break;
}
}
trigger_error('NO_MODE', E_USER_ERROR);
break;
}