X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=857d2c41b2f14cb955a368691463ee88f9e9651f;hp=8470a3a239eb2e7a8ad3fb77d7b07849db039426;hb=f888a0bda52e7dd2ea799837ed2991c263864e9f;hpb=c3db0c416433a946c25ea1ce8d9329c0912a1616 diff --git a/inc/functions.php b/inc/functions.php index 8470a3a239..857d2c41b2 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1128,15 +1128,8 @@ function getMessageFromErrorCode ($code) { break; case getCode('URL_TIME_LOCK'): - // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ? - $result = SQL_QUERY_ESC("SELECT `timestamp` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1", - array(bigintval(getRequestElement('id'))), __FUNCTION__, __LINE__); - // Load timestamp from last order - $content = SQL_FETCHARRAY($result); - - // Free memory - SQL_FREERESULT($result); + $content = getPoolDataFromId(getRequestElement('id')); // Translate it for templates $content['timestamp'] = generateDateTime($content['timestamp'], 1);