Skip to content

Commit

Permalink
JApplicationWeb -setHeader and sendHeader upgrade
Browse files Browse the repository at this point in the history
refinement - removed unnecessary parens
  • Loading branch information
stutteringp0et committed Apr 11, 2016
1 parent 3a1a134 commit ea82d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/application/web.php
Expand Up @@ -677,7 +677,7 @@ public function setHeader($name, $value, $replace = false)
}

// If no keys found, safe to insert
if (!$keys || ($keys && ($replace || (!in_array($name, $this->singleValueResponseHeaders)))))
if (!$keys || ($keys && ($replace || !in_array($name, $this->singleValueResponseHeaders))))
{
// Add the header to the internal array.
$this->response->headers[] = array('name' => $name, 'value' => $value);
Expand Down

0 comments on commit ea82d1c

Please sign in to comment.