Skip to content

Commit

Permalink
Merged in master.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Diers committed Mar 5, 2015
2 parents 2b188a4 + 64c4ba0 commit 10e9284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/formatter/hal_json/RestfulFormatterHalJson.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ protected function addHateoas(array &$data) {
}
$request = $this->handler->getRequest();

if (!isset($data['_links']) && is_array($data['_links'])) {

if (!isset($data['_links'])) {
$data['_links'] = array();
}

Expand Down

0 comments on commit 10e9284

Please sign in to comment.