X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=99a9eb1c8feeeef7e380892a1d5fa469e6657d49;hb=2164ff00dd24d381e1d412ae248f486230b2019a;hp=79d2a15ba769ecf38a3ab5df5c870c5ba3ca4856;hpb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;p=mailer.git diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index 79d2a15ba7..99a9eb1c8f 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); if (isFormSent()) { - $result = SQL_QUERY("SELECT + $result = sqlQuery("SELECT `userid`, `email` FROM @@ -54,9 +54,9 @@ WHERE `nl_receive`='Y' ORDER BY `userid` ASC", __FILE__, __LINE__); - if (!SQL_HASZERONUMS($result)) { + if (!ifSqlHasZeroNums($result)) { // Members are available so we can send out the newsletter! - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Construct mail... $template = 'newsletter'; @@ -84,7 +84,7 @@ ORDER BY } // END - if // Free memory - SQL_FREERESULT($result); + sqlFreeResult($result); } else { // Copy data into constants for the template and load it $content['datestamp'] = generateDateTime(time(), 3);