X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fadmins_functions.php;h=e0424383fbfd88db20236932c865e1ce6a130017;hp=f86d80446e3003863557f790cbc8e78204b76d2a;hb=c85ddc06cc16f2cd38ddd7d4c142a3f578bbab69;hpb=04fd04fb0015f81cec6b77b61bdae1d60ebf02ba diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index f86d80446e..e0424383fb 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -431,7 +431,7 @@ function sendAdminsEmails ($subj, $template, $content, $userid) { // Check which admin shall receive this mail $result = SQL_QUERY_ESC("SELECT `admin_id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `admin_id` ASC", array($template), __FUNCTION__, __LINE__); - if (SQL_NUMROWS($result) == '0') { + if (SQL_HASZERONUMS($result)) { // Create new entry (to all admins) SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admins_mails` (`admin_id`, `mail_template`) VALUES (0, '%s')", array($template), __FUNCTION__, __LINE__);