]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/booking_functions.php
First batch of fixed language ids (renamed, see ticket #219)
[mailer.git] / inc / libs / booking_functions.php
index 17f72513fe37aa36ca3cf678da20ee7f3c1e6cb0..4ef69c9eb0d5d98cd9f799c8431e3c900a6754b8 100644 (file)
@@ -40,8 +40,8 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
-// Add a record entry ("mode" can be add/sub!)
-function addBookingRecord ($subject, $userid, $points, $mode) {
+// Add a record entry ('pointsMode' can be add/sub!)
+function addBookingRecord ($subject, $userid, $points, $pointsMode) {
        // Is the sql_patches updated?
        if (isExtensionInstalledAndOlder('sql_patches', '0.5.7')) {
                // Abort here
@@ -49,11 +49,11 @@ function addBookingRecord ($subject, $userid, $points, $mode) {
        } // END - if
 
        // Add record entry here
-       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_booking` (`userid`,`subject`,`mode`,`points`) VALUES (%s,'%s','%s',%s)",
+       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_booking` (`userid`,`subject`,`points_mode`,`points`) VALUES (%s,'%s','%s',%s)",
                array(
                        bigintval($userid),
                        $subject,
-                       $mode,
+                       strtoupper($pointsMode),
                        $points
                ), __FUNCTION__, __LINE__);
 }