public function setTags($tags, $update_db = true) { if ($this->tags !== $tags) { $tags = ktagword::updateTags($this->tags, $tags, $update_db); parent::setTags(trim($tags)); } }