From 7b16b7bd6e23b4a215d7d212c214636b158062af Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Wed, 28 Sep 2005 20:50:19 +0000 Subject: [PATCH] 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 --- phpBB/posting.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpBB/posting.php b/phpBB/posting.php index dd512abe07..b8fdd2bb08 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -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 {