Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Merge branch '2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Mar 27, 2013
2 parents 60e8ffa + e13a41a commit 89f2df2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function getCommentsCount()
*/
public function __toString()
{
return $this->getTitle();
return $this->getTitle() ?: 'n/a';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Model/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ public function getPosts()
*/
public function __toString()
{
return $this->getName();
return $this->getName() ?: 'n/a';
}
}
File renamed without changes.

0 comments on commit 89f2df2

Please sign in to comment.