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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Status: Needs review » Reviewed & tested by the community

No-brainer. Nice catch.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

RobLoach’s picture

Version: 6.x-dev » 5.x-dev
Status: Fixed » Needs review
FileSize
1 KB

Found that this is persistent in 5.x-dev, as well as Drupal 5.4.

catch’s picture

Status: Needs review » Reviewed & tested by the community
drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5.x.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.