summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/validate.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/validate.inc.php')
-rw-r--r--frontends/php/include/validate.inc.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php
index 80a923ef..740974d0 100644
--- a/frontends/php/include/validate.inc.php
+++ b/frontends/php/include/validate.inc.php
@@ -60,7 +60,7 @@
{
if(is_array($array)) $array = implode(',', $array);
- return "in_array({".$var."},array(".$array."))&&";
+ return "str_in_array({".$var."},array(".$array."))&&";
}
function HEX($var=NULL)
{
@@ -222,7 +222,6 @@
}
$expression = trim($expression,"& ");
$exec = "return (".$expression.") ? 1 : 0;";
-
$ret = eval($exec);
//echo $debug;
//echo "$field - result: ".$ret." exec: $exec".SBR.SBR;
@@ -232,8 +231,6 @@
function calc_exp($fields,$field,$expression)
{
- global $_REQUEST;
-
//SDI("$field - expression: ".$expression);
if(strstr($expression,"{}") && !isset($_REQUEST[$field]))