mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/12718] Use a separate variable for sql query
PHPBB3-12718
This commit is contained in:
parent
6d399c7d6a
commit
15afaafcb6
1 changed files with 4 additions and 3 deletions
|
@ -338,9 +338,10 @@ class phpbb_content_visibility_delete_post_test extends phpbb_database_test_case
|
|||
$this->assertEquals($expected_forum, $db->sql_fetchrowset($result));
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$result = $db->sql_query('SELECT user_posts
|
||||
FROM phpbb_users
|
||||
WHERE user_id = ' . (int) $data['poster_id']);
|
||||
$sql = 'SELECT user_posts
|
||||
FROM ' . USERS_TABLE . '
|
||||
WHERE user_id = ' . (int) $data['poster_id'];
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$this->assertEquals($expected_user, $db->sql_fetchrowset($result));
|
||||
$db->sql_freeresult($result);
|
||||
|
|
Loading…
Add table
Reference in a new issue