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, 3 insertions, 2 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php
index b91b300f..95ba33d9 100644
--- a/frontends/php/include/validate.inc.php
+++ b/frontends/php/include/validate.inc.php
@@ -331,12 +331,13 @@
function invalid_url()
{
+ include_once "include/page_header.php";
unset_all();
show_error_message(S_INVALID_URL);
include_once "include/page_footer.php";
}
- function check_fields(&$fields)
+ function check_fields(&$fields, $show_messages=true)
{
global $_REQUEST;
@@ -370,7 +371,7 @@
invalid_url();
}
- show_messages();
+ if($show_messages) show_messages();
return ($err==ZBX_VALID_OK ? 1 : 0);
}