mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +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:
@@ -318,6 +318,10 @@ if ( $result = $db->sql_query($sql) )
|
|||||||
$post_data['has_poll'] = false;
|
$post_data['has_poll'] = false;
|
||||||
$post_data['edit_poll'] = false;
|
$post_data['edit_poll'] = false;
|
||||||
}
|
}
|
||||||
|
if ( $mode = 'poll_delete' && !isset($poll_id) )
|
||||||
|
{
|
||||||
|
message_die(GENERAL_MESSAGE, $lang['No_such_post']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user