]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_coupon.php
Fixes + asserts
[mailer.git] / inc / modules / admin / what-send_coupon.php
index 6b60506570c435def1d34685c92e99eb42f71139..6dcccbd68d9bff82540d339913eada2b3afbe915 100644 (file)
@@ -72,7 +72,7 @@ ORDER BY
                        $expirationTime = time() + createEpocheTimeFromSelections('coupon_default_time', postRequestArray());
 
                        // Insert coupon data
-                       sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`coupon_expired`, `total_created`, `points`, `coupon_description`) VALUES ('{%%pipe,SQL_EPOCHE_TO_TIMESTAMP=%s%%}', %s,%s,'%s')",
+                       sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`coupon_expired`, `total_created`, `points`, `coupon_description`) VALUES ('{%%pipe,getSqlTimestampFromUnix=%s%%}', %s,%s,'%s')",
                                array(
                                        $expirationTime,
                                        sqlNumRows($result),
@@ -90,7 +90,7 @@ ORDER BY
                        // Load entry
                        while (list($userid) = sqlFetchRow($result)) {
                                // Debug message
-                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'NUMS=' . SQL_NUMROWS($result) . ',userid=' . $userid);
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'NUMS=' . sqlNumRows($result) . ',userid=' . $userid);
 
                                // By default no code is unique
                                $isUnique = FALSE;