diff options
author | David M <davidmj@users.sourceforge.net> | 2006-12-24 06:26:03 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-12-24 06:26:03 +0000 |
commit | 49b8060b0c3cd8db11798a906d3acaf906e6a68d (patch) | |
tree | fd6ac80cd2e31fc25a6cc61cdbed9e8129c4e9da /phpBB/posting.php | |
parent | 8e72037e67f67076c87089a29948821cb6a5077e (diff) | |
download | forums-49b8060b0c3cd8db11798a906d3acaf906e6a68d.tar forums-49b8060b0c3cd8db11798a906d3acaf906e6a68d.tar.gz forums-49b8060b0c3cd8db11798a906d3acaf906e6a68d.tar.bz2 forums-49b8060b0c3cd8db11798a906d3acaf906e6a68d.tar.xz forums-49b8060b0c3cd8db11798a906d3acaf906e6a68d.zip |
#6504
git-svn-id: file:///svn/phpbb/trunk@6801 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index fbc91b47b9..b05c051549 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -488,6 +488,18 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts')) confirm_box(false, 'SAVE_DRAFT', $s_hidden_fields); } } + else + { + if (!$subject) + { + $error[] = $user->lang['EMPTY_SUBJECT']; + } + + if (!$message) + { + $error[] = $user->lang['TOO_FEW_CHARS']; + } + } unset($subject, $message); } |