hi!
I have a problem when I delete a message on my forum, I get the following message:
Wrong value type sent to the database. Integer expected. (Amount)
Function: removeMessage
File: / Sources / RemoveTopic.php
Line: 953
When I check the line 953 I realize that it is about this part:
// Begin SMFShop code
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET money = IF(money >= {int:amount}, money - {int:amount}, 0)
WHERE id_member = {int:member}
LIMIT 1',
array(
'amount' => $modSettings['shopPointsPerPost'],
'member' => $row['id_member'],
));
// End SMFShop code
I have tried to change that, but I have good results. the most that I have to do is change "));" by "),", but in doing so, another error occurs in line 957:
// Only remove posts if they're not recycled.
if (!$recycle)
Blank page appears with a message:
parse error in source / removetopic.php in line 957Do not know what to do, really need help, I hope someone answers this message.
Version SMF: 2.0 RC3
Version SHOP: 3.1.5 for SMF 2.0 RC3I appreciate the attention to this in advance because of the help I can offer.
Bye!