aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-03-11 21:17:32 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-03-11 21:17:32 +0000
commitba7008b387d1972736c638444cb6273c3d9ebeab (patch)
treee8e9872a6e33b1ffd3cb48951f09353702120043 /phpBB/posting.php
parent7487bfce48dd90ea370c8a40e67a75b814f2eb37 (diff)
downloadforums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar
forums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar.gz
forums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar.bz2
forums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar.xz
forums-ba7008b387d1972736c638444cb6273c3d9ebeab.zip
- re-enable drafts. ;)
- put extension checking into a small function... git-svn-id: file:///svn/phpbb/trunk@4862 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 9752e3a768..7be7c457de 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -427,7 +427,7 @@ if ($save && $user->data['user_id'] != ANONYMOUS && $auth->acl_get('u_savedrafts
$message = (isset($_POST['message'])) ? htmlspecialchars(trim(str_replace(array('\\\'', '\\"', '\\0', '\\\\'), array('\'', '"', '\0', '\\'), $_POST['message']))) : '';
$message = preg_replace('#&amp;(\#[0-9]+;)#', '&\1', $message);
- if (!$subject && !$message)
+ if ($subject && $message)
{
$sql = 'INSERT INTO ' . DRAFTS_TABLE . ' ' . $db->sql_build_array('INSERT', array(
'user_id' => $user->data['user_id'],