]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/booking_functions.php
Renamed function, used more "pool functions":
[mailer.git] / inc / libs / booking_functions.php
index cbbde725902d4b423ad9aeba12acc6cfdd38824b..9b7e78dc45e62e418191e3a1822b1a052847a250 100644 (file)
@@ -41,19 +41,20 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Add a record entry ('pointsMode' can be add/sub!)
-function addBookingRecord ($subject, $userid, $points, $pointsMode) {
-       // Is the sql_patches updated?
+function addBookingRecord ($subject, $userid, $points, $pointsMode, $accountType) {
+       // Is the ext-sql_patches updated?
        if (isExtensionInstalledAndOlder('sql_patches', '0.5.7')) {
                // Abort here
                return;
        } // 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__);
 }