diff options
Diffstat (limited to 'frontends/php/include/validate.inc.php')
| -rw-r--r-- | frontends/php/include/validate.inc.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php index db0e1291..46a03a1f 100644 --- a/frontends/php/include/validate.inc.php +++ b/frontends/php/include/validate.inc.php @@ -207,12 +207,15 @@ { foreach($fields as $f => $checks) { +/* // If an unset variable used in expression, return FALSE if(strstr($expression,'{'.$f.'}')&&!isset($_REQUEST[$f])) { +//SDI("Variable [$f] is not set. $expression is FALSE"); //info("Variable [$f] is not set. $expression is FALSE"); - return FALSE; +// return FALSE; } +//*/ //echo $f,":",$expression,"<br>"; $expression = str_replace('{'.$f.'}','$_REQUEST["'.$f.'"]',$expression); //$debug .= $f." = ".$_REQUEST[$f].BR; @@ -223,6 +226,7 @@ $ret = eval($exec); //echo $debug; //echo "$field - result: ".$ret." exec: $exec".BR.BR; +//SDI("$field - result: ".$ret." exec: $exec"); return $ret; } @@ -230,7 +234,7 @@ { global $_REQUEST; -//echo "$field - expression: ".$expression.BR; +//SDI("$field - expression: ".$expression); if(strstr($expression,"{}") && !isset($_REQUEST[$field])) return FALSE; @@ -248,7 +252,7 @@ } return TRUE; } - +//SDI("$field - expression: ".$expression); return calc_exp2($fields,$field,$expression); } |
