X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fframetester.php;h=7fefcea14180140f230d7c6b2513de3380dac5f9;hp=93c5eb126a212c20ac7e5fff3b88ab9ccfba84a1;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hpb=596c8ab32594401ca84abfbfe35513ddfff31bec diff --git a/inc/modules/frametester.php b/inc/modules/frametester.php index 93c5eb126a..7fefcea141 100644 --- a/inc/modules/frametester.php +++ b/inc/modules/frametester.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,13 +46,12 @@ if (isGetRequestElementSet('order')) { // Order number placed, is he also logged in? if (isMember()) { // Ok, test passed... :) - $result = SQL_QUERY_ESC("SELECT `subject`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s AND `sender`=%s AND `data_type`='TEMP' LIMIT 1", - array(bigintval(getRequestElement('order')), getMemberId()), __FILE__, __LINE__); + $content = getPoolDataFromId(getRequestElement('order')); // Finally is the entry valid? - if (SQL_NUMROWS($result) == 1) { + if ((isFilledArray($content)) && ($content['data_type'] == 'TEMP')) { // Load subject and URL (but forwhat do we need the subject line here??? - list($sub, $url) = SQL_FETCHROW($result); + list($url) = sqlFetchRow($result); // This fixes a white page setPostRequestElement('url', $url); @@ -63,9 +62,6 @@ if (isGetRequestElementSet('order')) { // Matching line not found redirectToUrl('modules.php?module=index&what=login'); } - - // Free memory - SQL_FREERESULT($result); } else { // He is no longer logged in redirectToUrl('modules.php?module=index&what=login');