aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 2104bd515a..b6fcb7ef10 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5054,19 +5054,16 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
* session item, e.g. forum for
* session_forum_id
* @var int item_id Restrict online users to item id
- * @var array http_headers HTTP headers that should be set by phpbb
+ * @var array http_headers HTTP headers that should be set by phpbb
*
* @since 3.1.0-b3
*/
$vars = array('page_title', 'display_online_list', 'item_id', 'item', 'http_headers');
extract($phpbb_dispatcher->trigger_event('core.page_header_after', compact($vars)));
- if (is_array($http_headers))
+ foreach ($http_headers as $hname => $hval)
{
- foreach ($http_headers as $hname => $hval)
- {
- header((string) $hname.': '.(string) $hval);
- }
+ header((string) $hname.': '.(string) $hval);
}
return;