aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_pm_compose.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-19 16:40:56 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-19 16:40:56 +0000
commit4c44eddc907f1e17a6880fdba918d6523c2f660f (patch)
tree61f3bde2129aa9d341b7b01b0ed095b3f797e140 /phpBB/includes/ucp/ucp_pm_compose.php
parent47d3e4d9b8949d98e86373de0931e928e5ae09ef (diff)
downloadforums-4c44eddc907f1e17a6880fdba918d6523c2f660f.tar
forums-4c44eddc907f1e17a6880fdba918d6523c2f660f.tar.gz
forums-4c44eddc907f1e17a6880fdba918d6523c2f660f.tar.bz2
forums-4c44eddc907f1e17a6880fdba918d6523c2f660f.tar.xz
forums-4c44eddc907f1e17a6880fdba918d6523c2f660f.zip
we included a check for getimagesize() existance... now we again can suppress notices while running this function.
git-svn-id: file:///svn/phpbb/trunk@7646 89ea8834-ac86-4346-8a33-228a782c2dd0
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);
}