Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correction to tep_enforce_form_values

While mucking around with git I included an old version.
  • Loading branch information...
commit 426bbd0f9e027073b6b44ec31b0f59184bf658b8 1 parent 8ea7023
FwrMedia authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  catalog/includes/functions/general.php
View
2  catalog/includes/functions/general.php
@@ -1406,7 +1406,7 @@ function tep_enforce_form_values($key, $value, &$form_data) {
/**
* Type cast if requested or use functions on the value, if not the value must match e.g. action = process
*/
- switch($form_data) {
+ switch($value) {
case 'int':
$form_data[$key] = (int)$form_data[$key];
break;
Please sign in to comment.
Something went wrong with that request. Please try again.