]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_rallye_prices.php
Introduced new wrapper functions to make the code more readable, new extension ext...
[mailer.git] / inc / modules / admin / what-config_rallye_prices.php
index a4aca48501450efc8bc62957f1f31c10786bb587..0d08a22550afdbf06d3483c14c718b9ac2672810 100644 (file)
@@ -53,7 +53,7 @@ if (isGetRequestParameterSet('rallye')) {
                        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s AND `price_level`='%s' LIMIT 1",
                        array(bigintval(getRequestParameter('rallye')), bigintval(postRequestParameter('level'))), __FILE__, __LINE__);
 
-                       if (SQL_NUMROWS($result) == '0') {
+                       if (SQL_HASZERONUMS($result)) {
                                // Ok, new price level entered!
                                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_prices` (rallye_id, price_level, points, info)
 VALUES ('%s','%s','%s','%s')",