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.
This commit is contained in:
Bharat Mediratta
2011-01-15 12:33:51 -08:00
parent a7d4f87bde
commit d511fc77ad
2 changed files with 3 additions and 6 deletions

View File

@@ -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") ?>"