Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / admin / what-config_rallye_prices.php
index 63030d31811b9510976cf93098aec98ad6261917..3245fb300025a35d0ed0ac50e286fc796f6c1460 100644 (file)
@@ -52,7 +52,7 @@ if (isGetRequestElementSet('rallye')) {
                        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s AND `price_level`='%s' LIMIT 1",
                        array(bigintval(getRequestElement('rallye')), bigintval(postRequestElement('level'))), __FILE__, __LINE__);
 
-                       if (SQL_NUMROWS($result) == 0) {
+                       if (SQL_NUMROWS($result) == '0') {
                                // 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')",