]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-order.php
Extension ext-coupon continued, a lot improvements applied:
[mailer.git] / inc / modules / member / what-order.php
index 0110dfec0235d9d7abf867882033ebeb7b02bed3..f1d4a2444c179500f701339fd4ed2360b677c02e 100644 (file)
@@ -72,7 +72,7 @@ FROM
 WHERE
        `sender`=%s AND
        `url`='%s' AND
-       `timestamp` > (UNIX_TIMESTAMP() - {?url_tlock?})
+       (UNIX_TIMESTAMP() - `timestamp`) >= {?url_tlock?}
 LIMIT 1",
                array(
                        getMemberId(),
@@ -82,6 +82,7 @@ LIMIT 1",
        $type = 'TEMP'; $id = '0';
        if (SQL_NUMROWS($result) == 1) {
                // Load id and mail type
+               // @TODO Rewrite this to SQL_FETCHARRAY()
                list($id, $type) = SQL_FETCHROW($result);
        } // END - if