diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-17 13:01:17 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-17 13:01:17 +0000 |
commit | a2c81d763fa2e591bf3aa8f48ffeed4beb363975 (patch) | |
tree | 45b7c11ec918b0d9b98cf3a6671d0c606d15a12a /phpBB/posting.php | |
parent | 94a91530da9f952a8b6e729ff187932706282f5a (diff) | |
download | forums-a2c81d763fa2e591bf3aa8f48ffeed4beb363975.tar forums-a2c81d763fa2e591bf3aa8f48ffeed4beb363975.tar.gz forums-a2c81d763fa2e591bf3aa8f48ffeed4beb363975.tar.bz2 forums-a2c81d763fa2e591bf3aa8f48ffeed4beb363975.tar.xz forums-a2c81d763fa2e591bf3aa8f48ffeed4beb363975.zip |
#11046 - properly show load button.
git-svn-id: file:///svn/phpbb/trunk@7615 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index c14cde21d4..77f8aa720d 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -412,9 +412,9 @@ if ($user->data['is_registered'] && $auth->acl_get('u_savedrafts') && ($mode == { $sql = 'SELECT draft_id FROM ' . DRAFTS_TABLE . ' - WHERE (forum_id IN (' . $forum_id . ', 0)' . (($topic_id) ? " OR topic_id = $topic_id" : '') . ') - AND (forum_id <> 0 AND topic_id <> 0) - AND user_id = ' . $user->data['user_id'] . + WHERE user_id = ' . $user->data['user_id'] . + (($forum_id) ? ' AND forum_id = ' . (int) $forum_id : '') . + (($topic_id) ? ' AND topic_id = ' . (int) $topic_id : '') . (($draft_id) ? " AND draft_id <> $draft_id" : ''); $result = $db->sql_query_limit($sql, 1); |