Visiting admin/user/user when you're using a table prefix in your database, you get the following warning:
user warning: Table 'drupal.users' doesn't exist query: SELECT COUNT(DISTINCT u.uid) FROM users u LEFT JOIN users_roles ur ON u.uid = ur.uid WHERE u.uid != 0 in user.admin.inc on line XXX.
This is because it doesn't put the {} around the table name. The attached patch will fix it.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | users_admin_admin_5.patch | 1 KB | robloach |
| adminuseruserbrackets.patch | 1022 bytes | robloach |
Comments
Comment #1
webchickNo-brainer. Nice catch.
Comment #2
gábor hojtsyThanks, committed.
Comment #3
robloachFound that this is persistent in 5.x-dev, as well as Drupal 5.4.
Comment #4
catchhttp://drupal.org/node/198309#comment-650610 was duplicate, and RTBC.
Comment #5
drummCommitted to 5.x.
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.