Update settings.php
This commit is contained in:
parent
c4aa6aabfd
commit
70e8acedc5
@ -114,7 +114,7 @@ switch ($action) {
|
|||||||
$custom_tax_rate = filter_var(_post('custom_tax_rate'), FILTER_SANITIZE_SPECIAL_CHARS);
|
$custom_tax_rate = filter_var(_post('custom_tax_rate'), FILTER_SANITIZE_SPECIAL_CHARS);
|
||||||
if (preg_match('/[^0-9.]/', $custom_tax_rate)) {
|
if (preg_match('/[^0-9.]/', $custom_tax_rate)) {
|
||||||
r2(U . 'settings/app', 'e', 'Special characters are not allowed in tax rate');
|
r2(U . 'settings/app', 'e', 'Special characters are not allowed in tax rate');
|
||||||
return;
|
die();
|
||||||
}
|
}
|
||||||
run_hook('save_settings'); #HOOK
|
run_hook('save_settings'); #HOOK
|
||||||
if (!empty($_FILES['logo']['name'])) {
|
if (!empty($_FILES['logo']['name'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user