Permalink
Browse files

Correction to tep_enforce_form_values

While mucking around with git I included an old version.
  • Loading branch information...
1 parent 8ea7023 commit 426bbd0f9e027073b6b44ec31b0f59184bf658b8 FwrMedia committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 426bbd0

Please sign in to comment.