The if statment will only use the next line, unless you add brackets. Before hand, there was only one "line" of code, and so everything was fine. By adding the extra code, you needed to add brackets.
[...]
// If we do give credits, then how much?
if (isset($row_shop['countMoney']) && $row_shop['countMoney'] == "1") {
//For a new topic, you get...
if ($newTopic) {
$result_shop = db_query("UPDATE {$db_prefix}members
SET money = money + {$modSettings['shopPointsPerTopic']}
WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);
$result_shop = db_query("UPDATE {$db_prefix}members
SET money = money + 3
WHERE ID_MEMBER = 285
LIMIT 1", __FILE__, __LINE__);
}
else {
$result_shop = db_query("UPDATE {$db_prefix}members
SET money = money + {$modSettings['shopPointsPerPost']}
WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);
$result_shop = db_query("UPDATE {$db_prefix}members
SET money = money + 2
WHERE ID_MEMBER = 285
LIMIT 1", __FILE__, __LINE__);
}
}
//End Shop MOD
[...]
should work!