mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-18 21:39:52 +02:00
git-svn-id: file:///svn/phpbb/trunk@7356 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
fb24543144
commit
24367c94e9
@ -85,6 +85,7 @@ switch ($mode)
|
||||
case 'delete':
|
||||
if (!$post_id)
|
||||
{
|
||||
$user->setup('posting');
|
||||
trigger_error('NO_POST');
|
||||
}
|
||||
|
||||
@ -123,7 +124,7 @@ switch ($mode)
|
||||
|
||||
if (!$sql)
|
||||
{
|
||||
$user->setup(array('posting', 'mcp', 'viewtopic'));
|
||||
$user->setup('posting');
|
||||
trigger_error('NO_POST_MODE');
|
||||
}
|
||||
|
||||
@ -133,6 +134,10 @@ $db->sql_freeresult($result);
|
||||
|
||||
if (!$post_data)
|
||||
{
|
||||
if (!($mode == 'post' || $mode == 'bump' || $mode == 'reply'))
|
||||
{
|
||||
$user->setup('posting');
|
||||
}
|
||||
trigger_error(($mode == 'post' || $mode == 'bump' || $mode == 'reply') ? 'NO_TOPIC' : 'NO_POST');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user