diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-15 12:33:51 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-15 12:33:51 -0800 |
commit | d511fc77adfa628b04968d153e397425e3a93358 (patch) | |
tree | ace964eeeb165d402bf02ffe2caee781f6977066 /modules/user/views | |
parent | a7d4f87bdee174dbd9baf65ba99cf5cda16758b5 (diff) |
Tweake Joe's change to admin_users to revert the code that joins against the items
table; it's not clear that this is going to be efficient for large data sets.
Diffstat (limited to 'modules/user/views')
-rw-r--r-- | modules/user/views/admin_users.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php index 74b13ec5..a7bd6b27 100644 --- a/modules/user/views/admin_users.html.php +++ b/modules/user/views/admin_users.html.php @@ -88,7 +88,7 @@ <?= ($user->last_login == 0) ? "" : gallery::date($user->last_login) ?> </td> <td> - <?= $user->item_count ?> + <?= db::build()->from("items")->where("owner_id", "=", $user->id)->count_records() ?> </td> <td> <a href="<?= url::site("admin/users/edit_user_form/$user->id") ?>" |