]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Notice fixed, email navi now shown if on 2+ page
[mailer.git] / inc / mysql-manager.php
index 5d52c25fae2ef886317a2f5b30cf2e4b44e8b582..19750af9c41acb72a38086ba10f01a8176f5017f 100644 (file)
@@ -1637,7 +1637,7 @@ function MODULE_HAS_MENU($mod, $forceDb = false)
 // Subtract points from database and mediadata cache
 function SUB_POINTS ($uid, $points) {
        // Add points to used points
-       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET used_points=used_points+%s WHERE userid=%s LIMIT 1",
+       $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET `used_points`=`used_points`+%s WHERE userid=%s LIMIT 1",
         array($points, bigintval($uid)), __FILE__, __LINE__);
 
        // Update mediadata as well