mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
[ticket/10308] makes variable boolean
makes user_row['user_has_posts'] boolean instead of 1 or 0. PHPBB3-10308
This commit is contained in:
parent
164054f067
commit
23ea588880
1 changed files with 1 additions and 1 deletions
|
@ -1013,7 +1013,7 @@ class acp_users
|
|||
FROM ' . POSTS_TABLE . '
|
||||
WHERE poster_id = '. $user_id;
|
||||
$result = $db->sql_query_limit($sql, 1);
|
||||
$user_row['user_has_posts'] = ($db->sql_fetchfield('post_id') ? 1 : 0);
|
||||
$user_row['user_has_posts'] = (bool) $db->sql_fetchfield('post_id');
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$template->assign_vars(array(
|
||||
|
|
Loading…
Add table
Reference in a new issue