Skip to content

Instantly share code, notes, and snippets.

@dotsonjb14
Created June 28, 2012 00:04
Show Gist options
  • Save dotsonjb14/3007742 to your computer and use it in GitHub Desktop.
Save dotsonjb14/3007742 to your computer and use it in GitHub Desktop.
get_tags, check for empty term
public function get_tags()
{
$this->theme->wsse = Utils::WSSE();
$this->theme->tags = Tags::vocabulary()->get_tree( 'term_display asc' );
$this->theme->max = Tags::vocabulary()->max_count();
for( $i = 0; $i < count($this->theme->tags); $i++ )
{
if( $this->theme->tags[$i]->term_display == "" )
{
$this->theme->tags[$i]->term_display = "Tag term missing";
}
}
$this->display( 'tags' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment