summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/validate.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-31 10:31:57 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-31 10:31:57 +0000
commit2ae32e52989defd735f7988f7a54864ad58b389a (patch)
treec3a1f02d9a4659becf7fecde859f035e86d2dceb /frontends/php/include/validate.inc.php
parent1a8203868a9eb0f6e7a55b1df9b0ca3f0c32e5cd (diff)
downloadzabbix-2ae32e52989defd735f7988f7a54864ad58b389a.tar.gz
zabbix-2ae32e52989defd735f7988f7a54864ad58b389a.tar.xz
zabbix-2ae32e52989defd735f7988f7a54864ad58b389a.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2587 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/validate.inc.php')
-rw-r--r--frontends/php/include/validate.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php
index dd33af3a..35196f9d 100644
--- a/frontends/php/include/validate.inc.php
+++ b/frontends/php/include/validate.inc.php
@@ -63,6 +63,7 @@
if($expression[strlen($expression)-1]=='&') $expression[strlen($expression)-1]=0;
$exec = "return ".$expression.";";
// info($exec);
+// echo $exec,"<br>";
return eval($exec);
}
@@ -72,7 +73,7 @@
{
if(!isset($fields[$key]))
{
- echo "Unset: $key<br>";
+//// echo "Unset: $key<br>";
unset($_REQUEST[$key]);
}
}
@@ -121,6 +122,8 @@
$ret = TRUE;
+ return $ret;
+
$critical = FALSE;
foreach($fields as $field => $checks)