projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More use of REVERT_COMMA() fixes problems
[mailer.git]
/
inc
/
modules
/
admin
/
what-config_payouts.php
diff --git
a/inc/modules/admin/what-config_payouts.php
b/inc/modules/admin/what-config_payouts.php
index 58e04477de046797243f46724d9cc586ef937442..9859235a083c16f95f64c15a7a0784bf93a05eac 100644
(file)
--- a/
inc/modules/admin/what-config_payouts.php
+++ b/
inc/modules/admin/what-config_payouts.php
@@
-40,7
+40,7
@@
if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-if (!empty($_POST['rate'])) $_POST['rate'] =
str_replace(",", ".",
$_POST['rate']);
+if (!empty($_POST['rate'])) $_POST['rate'] =
REVERT_COMMA(
$_POST['rate']);
if ((isset($_POST['add'])) && (!empty($_POST['title'])) && ($_POST['rate'] > 0))
{
if ((isset($_POST['add'])) && (!empty($_POST['title'])) && ($_POST['rate'] > 0))
{
@@
-104,8
+104,8
@@
allow_url='%s'
WHERE id='".$id."' LIMIT 1",
array(
$_POST['title'][$id],
WHERE id='".$id."' LIMIT 1",
array(
$_POST['title'][$id],
- bigintval(
str_replace(",", ".",
$_POST['rate'][$id])),
- bigintval(
str_replace(",", ".",
$_POST['mpoi'][$id])),
+ bigintval(
REVERT_COMMA(
$_POST['rate'][$id])),
+ bigintval(
REVERT_COMMA(
$_POST['mpoi'][$id])),
$_POST['allow'][$id],
),__FILE__, __LINE__);
}
$_POST['allow'][$id],
),__FILE__, __LINE__);
}