X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fbooking_functions.php;h=9b7e78dc45e62e418191e3a1822b1a052847a250;hb=0d16dc908325fb9078d335e17f4e7c86b54eda7d;hp=57741ef14aab2892d8804760b2fb85f062ab826a;hpb=2df9f7a53f8b1dd5164f87824a324ccb3b6634cb;p=mailer.git diff --git a/inc/libs/booking_functions.php b/inc/libs/booking_functions.php index 57741ef14a..9b7e78dc45 100644 --- a/inc/libs/booking_functions.php +++ b/inc/libs/booking_functions.php @@ -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__); }