]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/booking_functions.php
Fixes
[mailer.git] / inc / libs / booking_functions.php
index 9fc236d20866832d2fea5bc9408e8715e3a36183..9b7e78dc45e62e418191e3a1822b1a052847a250 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Add a record entry ('pointsMode' can be add/sub!)
-function addBookingRecord ($subject, $userid, $points, $pointsMode) {
+function addBookingRecord ($subject, $userid, $points, $pointsMode, $accountType) {
        // Is the ext-sql_patches updated?
        if (isExtensionInstalledAndOlder('sql_patches', '0.5.7')) {
                // Abort here
@@ -49,11 +49,12 @@ function addBookingRecord ($subject, $userid, $points, $pointsMode) {
        } // END - if
 
        // Add record entry here
-       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_booking` (`userid`, `subject`, `points_mode`, `points`) VALUES (%s,'%s','%s',%s)",
+       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_booking` (`userid`, `subject`, `points_mode`, `points_account_type`, `points`) VALUES (%s, '%s', '%s', '%s', %s)",
                array(
                        bigintval($userid),
                        $subject,
                        strtoupper($pointsMode),
+                       strtoupper($accountType),
                        $points
                ), __FUNCTION__, __LINE__);
 }