Emanuele
Member
- Affected version
- 2.1.0 - Release Candidate 2
Class Response (src/XF/Http/Response.php), method charset(), around line 66:
I suppose that calling charset() without arguments should return the current charset, so the correct code should be:
PHP:
public function charset($charset = null)
{
if ($charset === null)
{
return $charset;
}
$this->charset = $charset;
return $this;
}
I suppose that calling charset() without arguments should return the current charset, so the correct code should be:
PHP:
public function charset($charset = null)
{
if ($charset === null)
{
return $this->charset;
}
$this->charset = $charset;
return $this;
}