Changeset 26559


Ignore:
Timestamp:
01/09/14 20:54:53 (5 years ago)
Author:
plg
Message:

bug 3017 fixed: compatible with external table for users

Location:
extensions/community
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/admin_permissions.php

    r23085 r26559  
    285285    '.$conf['user_fields']['username'].' AS username 
    286286  FROM '.USERS_TABLE.' AS u 
    287     INNER JOIN '.USER_INFOS_TABLE.' AS uf ON uf.user_id = id 
     287    INNER JOIN '.USER_INFOS_TABLE.' AS uf ON uf.user_id = u.'.$conf['user_fields']['id'].' 
    288288  WHERE uf.status IN (\'normal\',\'generic\') 
    289289;'; 
  • extensions/community/main.inc.php

    r26557 r26559  
    697697    '.$conf['user_fields']['username'].' AS username 
    698698  FROM '.USERS_TABLE.' AS u 
    699     INNER JOIN '.USER_INFOS_TABLE.' AS uf ON uf.user_id = id 
     699    INNER JOIN '.USER_INFOS_TABLE.' AS uf ON uf.user_id = u.'.$conf['user_fields']['id'].' 
    700700  WHERE uf.status IN (\'normal\',\'generic\') 
    701701;'; 
Note: See TracChangeset for help on using the changeset viewer.