]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-order.php
Users can now change receive status for coupons
[mailer.git] / inc / modules / member / what-order.php
index 0110dfec0235d9d7abf867882033ebeb7b02bed3..bd934037f5ddeea3956795a0dc659b55e23e84a1 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
 
@@ -526,7 +527,7 @@ LIMIT 1",
                                SQL_FREERESULT($result);
 
                                // Output user's points
-                               $content['total'] = $total;
+                               $content['total_points'] = $total;
 
                                // Check how many mail orders he has placed today and how many he's allowed to send
                                switch (getConfig('order_max_full')) {