Fix the calculation of the conversation users
authorAlexander Ebert <ebert@woltlab.com>
Mon, 21 Aug 2023 16:15:03 +0000 (18:15 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 21 Aug 2023 16:15:03 +0000 (18:15 +0200)
files/lib/system/exporter/VB3or4xExporter.class.php

index dad8b7ac2a6fd31140909939e7eb550b405d3a00..d7aa981d38609bdc0d1a9b019751eb0c0f335494 100644 (file)
@@ -1147,7 +1147,7 @@ class VB3or4xExporter extends AbstractExporter
      */
     public function countConversationUsers()
     {
-        $sql = "SELECT  COUNT(*) AS count
+        $sql = "SELECT  MAX(pmid) AS count
                 FROM    " . $this->databasePrefix . "pm";
         $statement = $this->database->prepareStatement($sql);
         $statement->execute();