Permalink
Browse files

Fix PHP warning in posts with no relations

  • Loading branch information...
Flynsarmy committed Feb 18, 2013
1 parent 34d8e2c commit e0098a0bf56ef9e320bec660d85f4488d06580d5
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 e0098a0

Please sign in to comment.