mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
fixes #3269 switched v1 tables to v2
Fixed issue with null values in table (on duplicate)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user