mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Couldn't edit first post to add poll even if allowed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3159 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
b92fa02d50
commit
89cf74c066
1 changed files with 2 additions and 2 deletions
|
@ -298,9 +298,9 @@ if ( $result = $db->sql_query($sql) )
|
|||
|
||||
$post_data['edit_poll'] = ( ( !$poll_results_sum || $is_auth['auth_mod'] ) && $post_data['first_post'] ) ? true : 0;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$post_data['edit_poll'] = false;
|
||||
$post_data['edit_poll'] = ($post_data['first_post'] && $is_auth['auth_pollcreate']) ? true : false;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue