]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_payouts.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / admin / what-config_payouts.php
index 395d6087e47d60fed2818869e2f6f54856a1ff0e..bda7aff95f6e3cbcf2492e1ac4e7f0e919aa71f8 100644 (file)
@@ -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__);
        // 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)
                // 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)