}
// Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __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))
{
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__);
}