Permalink
Browse files

ensure custom column exists before returning

  • Loading branch information...
1 parent c267618 commit b6836b2a7174d13de40a13438aa66ccd5e02249d @billerickson committed Jul 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/ns_tmo_plugin.class.php
@@ -40,7 +40,8 @@ public function add_column_value ($empty = '', $custom_column, $term_id) {
$term = get_term($term_id, $taxonomy);
- return $term->$custom_column;
+ if( isset( $term->$custom_column ) )
+ return $term->$custom_column;
}

0 comments on commit b6836b2

Please sign in to comment.