Skip to content

Commit

Permalink
protect against errant non-string status_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jondavidjohn committed Jun 20, 2013
1 parent 2a9cd8a commit b13e922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions social.php
Expand Up @@ -1674,11 +1674,11 @@ public function comment($comment, array $args = array(), $depth = 0) {
// set Social Items for Social comments
if (!in_array($comment->comment_type, $ignored_types)) {
$status_id = get_comment_meta($comment->comment_ID, 'social_status_id', true);
if (!empty($status_id)) {
if ($status_id && is_string($status_id)) {
$status_url = $service->status_url(get_comment_author(), $status_id);
}
// Social items?
if (!empty($comment->social_items)) {
if (!empty($comment->social_items) && isset($status_url)) {
if (is_object($service) && method_exists($service, 'key')) {
$avatar_size = apply_filters('social_items_comment_avatar_size', array(
'width' => 18,
Expand Down

0 comments on commit b13e922

Please sign in to comment.