Skip to content

Commit

Permalink
Missing return argument
Browse files Browse the repository at this point in the history
The method is declared to return JDocumentHTML, but contains a void return statement.
Currently the return value is ignored everywhere, therefore this patch won't have any side effects and can be merged safely.
  • Loading branch information
demis-palma committed Nov 3, 2015
1 parent 319b19b commit 20bd6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/document/html/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function setHeadData($data)
{
if (empty($data) || !is_array($data))
{
return;
return $this;
}

$this->title = (isset($data['title']) && !empty($data['title'])) ? $data['title'] : $this->title;
Expand Down

0 comments on commit 20bd6d6

Please sign in to comment.