aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php2
-rw-r--r--include/page_header.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 7f559a893..485d490b5 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -547,7 +547,7 @@ function redirect( $url )
// $refresh, $url_link and $title are required for creating an automated
// refresh page in header.tpl
- $refresh = 2;
+ $refresh = 0;
$url_link = $url;
$title = 'redirection';
include( PHPWG_ROOT_PATH.'include/page_header.php' );
diff --git a/include/page_header.php b/include/page_header.php
index 95785a1c9..f33c77ae1 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -44,7 +44,7 @@ $template->assign_vars(
));
// refresh
-if ( isset( $refresh ) and $refresh > 0 and isset( $url_link ) )
+if ( isset( $refresh ) and is_int($refresh) and isset( $url_link ) )
{
$template->assign_vars(
array(