aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_pm_compose.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_compose.php')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index c2dfc8dfb2..7b740c1515 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -459,6 +459,18 @@ function compose_pm($id, $mode, $action)
confirm_box(false, 'SAVE_DRAFT', $s_hidden_fields);
}
}
+ else
+ {
+ if (!$subject)
+ {
+ $error[] = $user->lang['EMPTY_MESSAGE_SUBJECT'];
+ }
+
+ if (!$message)
+ {
+ $error[] = $user->lang['TOO_FEW_CHARS'];
+ }
+ }
unset($subject, $message);
}