*/
public function untag($tag_class)
{
- $this->tags = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class));
+ $this->tags = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class . ';'));
}
/**
*/
public function getTag($tag_class)
{
- $matches = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class));
+ $matches = array_filter($this->tags, create_function('$t', 'return $t instanceof ' . $tag_class . ';'));
return array_shift($matches);
}