diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-05-09 21:41:12 +0530 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-05-10 22:53:43 +0530 |
commit | 23ea588880a6793b53f2f4da0eb0609bed3fc90c (patch) | |
tree | dd60bb4ce7ada1faa6fcc09b5a251e8556ae7a9c /phpBB/includes/acp/acp_users.php | |
parent | 164054f0679caaa68fb8400d3469b1149022db29 (diff) | |
download | forums-23ea588880a6793b53f2f4da0eb0609bed3fc90c.tar forums-23ea588880a6793b53f2f4da0eb0609bed3fc90c.tar.gz forums-23ea588880a6793b53f2f4da0eb0609bed3fc90c.tar.bz2 forums-23ea588880a6793b53f2f4da0eb0609bed3fc90c.tar.xz forums-23ea588880a6793b53f2f4da0eb0609bed3fc90c.zip |
[ticket/10308] makes variable boolean
makes user_row['user_has_posts'] boolean instead of 1 or 0.
PHPBB3-10308
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r-- | phpBB/includes/acp/acp_users.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index 7565d43690..70e08f79f2 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -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( |