X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-order.php;h=bd934037f5ddeea3956795a0dc659b55e23e84a1;hb=c66b1a42fe693a0cb3cf534b69b42fe73f881477;hp=0110dfec0235d9d7abf867882033ebeb7b02bed3;hpb=db0c6702086eea2c44d0aae1702dc2e77a0afc4e;p=mailer.git diff --git a/inc/modules/member/what-order.php b/inc/modules/member/what-order.php index 0110dfec02..bd934037f5 100644 --- a/inc/modules/member/what-order.php +++ b/inc/modules/member/what-order.php @@ -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')) {