X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_payouts.php;h=bda7aff95f6e3cbcf2492e1ac4e7f0e919aa71f8;hp=395d6087e47d60fed2818869e2f6f54856a1ff0e;hb=c85ddc06cc16f2cd38ddd7d4c142a3f578bbab69;hpb=04fd04fb0015f81cec6b77b61bdae1d60ebf02ba diff --git a/inc/modules/admin/what-config_payouts.php b/inc/modules/admin/what-config_payouts.php index 395d6087e4..bda7aff95f 100644 --- a/inc/modules/admin/what-config_payouts.php +++ b/inc/modules/admin/what-config_payouts.php @@ -51,7 +51,7 @@ if ((isPostRequestParameterSet('add')) && (isPostRequestParameterSet('title')) & // Add new payout type $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE type='%s' LIMIT 1", array(postRequestParameter('title')), __FILE__, __LINE__); - if (SQL_NUMROWS($result) == '0') { + if (SQL_HASZERONUMS($result)) { // Add now SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_payout_types` (type, rate, min_points, from_account, from_pass, engine_url, engine_ret_ok, engine_ret_failed, pass_enc, allow_url)