Ignore:
Timestamp:
Mar 1, 2011, 3:37:14 PM (13 years ago)
Author:
plg
Message:

bug fixed: deleting a user also deletes upload permissions linked to this user and reject pending photos added by this user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/main.inc.php

    r9444 r9452  
    1717
    1818global $prefixeTable;
    19 define('COMMUNITY_TABLE', $prefixeTable.'community');
    2019define('COMMUNITY_PERMISSIONS_TABLE', $prefixeTable.'community_permissions');
    2120define('COMMUNITY_PENDINGS_TABLE', $prefixeTable.'community_pendings');
     
    148147  $query = '
    149148DELETE
    150   FROM '.COMMUNITY_TABLE.'
     149  FROM '.COMMUNITY_PERMISSIONS_TABLE.'
    151150  WHERE user_id = '.$user_id.'
    152151;';
    153152  pwg_query($query);
     153
     154  community_reject_user_pendings($user_id);
    154155}
    155156
Note: See TracChangeset for help on using the changeset viewer.