diff options
| author | Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com> | 2015-01-18 21:44:41 +0000 |
|---|---|---|
| committer | Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com> | 2015-01-18 21:44:41 +0000 |
| commit | 6f021f780be7c181ecc6fe06a645f1a6ded0936a (patch) | |
| tree | 82ca621bf5e60120688ce6b5a4a6a70e9ee8a09f /library/WT/User.php | |
| parent | 36a7643b44914916917dd6ccf1cddc24c66095b8 (diff) | |
| download | webtrees-6f021f780be7c181ecc6fe06a645f1a6ded0936a.tar.gz webtrees-6f021f780be7c181ecc6fe06a645f1a6ded0936a.tar.bz2 webtrees-6f021f780be7c181ecc6fe06a645f1a6ded0936a.zip | |
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'library/WT/User.php')
| -rw-r--r-- | library/WT/User.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/WT/User.php b/library/WT/User.php index a605a15db1..18fafd8ba6 100644 --- a/library/WT/User.php +++ b/library/WT/User.php @@ -150,7 +150,7 @@ class User { * @return integer */ public static function count() { - return (int)WT_DB::prepare( + return (int) WT_DB::prepare( "SELECT SQL_CACHE COUNT(*)" . " FROM `##user`" . " WHERE user_id > 0" @@ -232,8 +232,8 @@ class User { */ public static function allLoggedIn() { $rows = WT_DB::prepare( - "SELECT SQL_NO_CACHE DISTINCT user_id, user_name, real_name, email". - " FROM `##user`". + "SELECT SQL_NO_CACHE DISTINCT user_id, user_name, real_name, email" . + " FROM `##user`" . " JOIN `##session` USING (user_id)" )->fetchAll(); |
