Permalink
Browse files

Merge pull request #1 from Flynsarmy/master

Fix PHP warning in posts with no relations
  • Loading branch information...
2 parents 34d8e2c + e0098a0 commit 6b33ace579d198a3b485a7879726f89ccbdc835e @nkuttler committed Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/frontend.php
View
@@ -166,7 +166,7 @@ private function get_the_related( $id, $config = null ) {
$r .= $relatednone;
$r .= '</div>';
}
- return $r;
+ return isset($r) ? $r : '';
}
/**

0 comments on commit 6b33ace

Please sign in to comment.