mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue