1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Merge pull request #3366 from SimSync/fix_3269

fixes #3269 switched v1 tables to v2
This commit is contained in:
Cameron
2018-08-09 15:39:14 -07:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -796,7 +796,7 @@ class e107forum
$qry = '
INSERT INTO `#user_extended` (user_extended_id, user_plugin_forum_posts)
VALUES ('.USERID.', 1)
ON DUPLICATE KEY UPDATE user_plugin_forum_posts = user_plugin_forum_posts + 1
ON DUPLICATE KEY UPDATE user_plugin_forum_posts = IFNULL(user_plugin_forum_posts, 0) + 1
';
$result = $sql->gen($qry);
}