X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Fbooking_functions.php;h=17f72513fe37aa36ca3cf678da20ee7f3c1e6cb0;hb=e3934352dffa6eb9da59a137ae1a9414e5b4d80b;hp=ad4601c0e4ed6d1d0a3d229f4b2f60c79d71ff48;hpb=24dfd21baed6a9a112992bdabf7da96576012bc4;p=mailer.git diff --git a/inc/libs/booking_functions.php b/inc/libs/booking_functions.php index ad4601c0e4..17f72513fe 100644 --- a/inc/libs/booking_functions.php +++ b/inc/libs/booking_functions.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -43,14 +43,19 @@ if (!defined('__SECURITY')) { // Add a record entry ("mode" can be add/sub!) function addBookingRecord ($subject, $userid, $points, $mode) { // Is the sql_patches updated? - if (isExtensionOlder('sql_patches', '0.5.7')) { + if (isExtensionInstalledAndOlder('sql_patches', '0.5.7')) { // Abort here return; } // END - if // Add record entry here - SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_book` (`userid`,`subject`,`mode`,`points`) VALUES(%s,'%s','%s',%s)", - array($userid, $subject, $mode, $points), __FUNCTION__, __LINE__); + SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_booking` (`userid`,`subject`,`mode`,`points`) VALUES (%s,'%s','%s',%s)", + array( + bigintval($userid), + $subject, + $mode, + $points + ), __FUNCTION__, __LINE__); } // [EOF]