mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00: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:
commit
23db98276f
1 changed files with 25 additions and 0 deletions
|
@ -226,6 +226,31 @@ class mcp_main
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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);
|
trigger_error('NO_MODE', E_USER_ERROR);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue