X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_points.php;h=7241b9727c0a1577fac2aa91f49a07f4bb81d758;hp=8307ed99a081e2d0f9d72bcc1bc36d7f740787ff;hb=f7f6e55ee0d90558ad773ce6168767c0af816696;hpb=36a31ecf3137283ddd5d7aad121bacf3df54e2e1 diff --git a/inc/modules/admin/what-config_points.php b/inc/modules/admin/what-config_points.php index 8307ed99a0..7241b9727c 100644 --- a/inc/modules/admin/what-config_points.php +++ b/inc/modules/admin/what-config_points.php @@ -83,7 +83,7 @@ if (isset($_POST['ok'])) { $id = bigintval($id); // Update entry - $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_refdepths SET level='%s', percents='%s' WHERE id=%s LIMIT 1", + $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_refdepths SET level=%s, percents='%s' WHERE id=%s LIMIT 1", array(bigintval($value), $_POST['perc'][$id], $id), __FILE__, __LINE__); } $TEXT = REF_DEPTHS_SAVED; @@ -134,7 +134,7 @@ WHERE mails_confirmed < %s", $REF, $REF); { if (strpos($SQL[0], "INSERT") > -1) { - $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_refdepths WHERE level='%s' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_refdepths WHERE level=%s LIMIT 1", array(bigintval($_POST['lvl'])), __FILE__, __LINE__); SQL_FREERESULT($result); }