Skip to content

Commit

Permalink
Changed validation + CS Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Davy De Coster committed Feb 25, 2016
1 parent ff99561 commit 1b870dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/RssView.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ protected function _prepareOutput($item) {
}
$val = $attrib;
} elseif (is_array($val) && isset($val['url'])) {
if (!isset($val['@isPermalink']) || $val['@isPermalink'] === "true") {
if (!isset($val['@isPermalink']) || $val['@isPermalink'] !== 'false') {
$val['url'] = Router::url($val['url'], true);
}
if ($bareKey === 'guid') {
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/View/RssViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,4 +696,5 @@ public function testIsPermalink() {
RSS;
$this->assertTextEquals($expected, $result);
}

}

0 comments on commit 1b870dd

Please sign in to comment.