X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-sponsor_infos.php;h=ae57f8345b8b6c9c21db7416d3a17d891cb814c9;hp=a6d7246e9fa404a15545e7e909c79afaada31297;hb=30ae22f62ae87c53a56baf0d134569ba91011111;hpb=cf3765c38cf0a76f396aca291f71858936e92956 diff --git a/inc/modules/guest/what-sponsor_infos.php b/inc/modules/guest/what-sponsor_infos.php index a6d7246e9f..ae57f8345b 100644 --- a/inc/modules/guest/what-sponsor_infos.php +++ b/inc/modules/guest/what-sponsor_infos.php @@ -62,7 +62,7 @@ LEFT JOIN `{?_MYSQL_PREFIX?}_sponsor_registry` AS r ON m.what=r.ext_name WHERE m.`action`='actions' AND r.is_active='Y' ORDER BY m.sort ASC", __FILE__, __LINE__); -if (SQL_NUMROWS($result_act) > 0) { +if (!SQL_HASZERONUMS($result_act)) { // Load all actions $OUT_ACT = ''; while ($content = SQL_FETCHARRAY($result_act)) { @@ -80,7 +80,7 @@ if (SQL_NUMROWS($result_act) > 0) { // Check for pay types $result_pay = SQL_QUERY('SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` ORDER BY `pay_name` ASC', __FILE__, __LINE__); - if (SQL_NUMROWS($result_pay) > 0) { + if (!SQL_HASZERONUMS($result_pay)) { // Load all pay types $OUT_PAY = ''; while ($content = SQL_FETCHARRAY($result_pay)) {