mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 20:40:24 +02: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:
@@ -1013,7 +1013,7 @@ class acp_users
|
|||||||
FROM ' . POSTS_TABLE . '
|
FROM ' . POSTS_TABLE . '
|
||||||
WHERE poster_id = '. $user_id;
|
WHERE poster_id = '. $user_id;
|
||||||
$result = $db->sql_query_limit($sql, 1);
|
$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);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
|
Reference in New Issue
Block a user