Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-8079

The sql query in acp_users.php lacks a condition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.0.5
    • 3.0.4
    • ACP
    • None
    • PHP Environment:
      Database:

      Go to ACP -> User and Groups -> Manage users -> select an user -> Feedback
      Click "Delete all"
      Result: all logs with log type set to LOG_USERS are deleted (not only the ones of the selected user).

      Solution: the query at lines 973-975 should look like this:
      $sql = 'DELETE FROM ' . LOG_TABLE . ' WHERE log_type = ' . LOG_USERS . " AND reportee_id = $user_id $where_sql";

            TerraFrost TerraFrost [X] (Inactive)
            grimskies grimskies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: