From 49b8060b0c3cd8db11798a906d3acaf906e6a68d Mon Sep 17 00:00:00 2001 From: David M Date: Sun, 24 Dec 2006 06:26:03 +0000 Subject: [PATCH] #6504 git-svn-id: file:///svn/phpbb/trunk@6801 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); }