mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-12 10:35:20 +02:00
Die slightly more gracefully under an error condition
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5232 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
07e6d084c0
commit
7b16b7bd6e
@ -318,6 +318,10 @@ if ( $result = $db->sql_query($sql) )
|
||||
$post_data['has_poll'] = false;
|
||||
$post_data['edit_poll'] = false;
|
||||
}
|
||||
if ( $mode = 'poll_delete' && !isset($poll_id) )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['No_such_post']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user