aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-05-18 21:03:56 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-05-18 21:03:56 +0000
commit3c02d5f2df00cecd6a0bc4a945ee3355bd423a81 (patch)
tree0c2d02685fee117d7643e13e0aa4f9da1956000d /phpBB/includes/functions_privmsgs.php
parent7e25c8d9cc255fbe460c2a970ad7da241c0880bb (diff)
downloadforums-3c02d5f2df00cecd6a0bc4a945ee3355bd423a81.tar
forums-3c02d5f2df00cecd6a0bc4a945ee3355bd423a81.tar.gz
forums-3c02d5f2df00cecd6a0bc4a945ee3355bd423a81.tar.bz2
forums-3c02d5f2df00cecd6a0bc4a945ee3355bd423a81.tar.xz
forums-3c02d5f2df00cecd6a0bc4a945ee3355bd423a81.zip
- fixing a few tiny bugs
- added new function to (re)apply sids where needed (login and mcp quickmod) - #1829 git-svn-id: file:///svn/phpbb/trunk@5931 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 073d434839..717c188a02 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1311,7 +1311,7 @@ function submit_pm($mode, $subject, &$data, $update_message, $put_in_outbox = tr
$db->sql_transaction();
// Submit Attachments
- if (sizeof($data['attachment_data']) && $data['msg_id'] && in_array($mode, array('post', 'reply', 'quote', 'quotepost', 'edit', 'forward')))
+ if (!empty($data['attachment_data']) && $data['msg_id'] && in_array($mode, array('post', 'reply', 'quote', 'quotepost', 'edit', 'forward')))
{
$space_taken = $files_added = 0;