mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
This time I really fixed posting to prevent deletion of topic titles when editing
git-svn-id: file:///svn/phpbb/trunk@1595 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
219b7c152c
commit
a2a7edc761
1 changed files with 1 additions and 1 deletions
|
@ -1058,7 +1058,7 @@ if( $submit && $mode != "vote" )
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_subject = trim(strip_tags($HTTP_POST_VARS['subject']));
|
$post_subject = trim(strip_tags($HTTP_POST_VARS['subject']));
|
||||||
if( ( $mode == "newtopic" || $mode == "editpost" ) && empty($post_subject) )
|
if( ( $mode == "newtopic" || ( $mode == "editpost" && $is_first_post_topic ) ) && empty($post_subject) )
|
||||||
{
|
{
|
||||||
$error = TRUE;
|
$error = TRUE;
|
||||||
if( !empty($error_msg) )
|
if( !empty($error_msg) )
|
||||||
|
|
Loading…
Add table
Reference in a new issue