mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
#11046 - properly show load button.
git-svn-id: file:///svn/phpbb/trunk@7615 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user