function get_groups() { if (!is_array($this->groups)) { require_once dirname(__FILE__) . '/TagsGroups.class.php'; $tags_groups_list = new TagsGroups_list(); $this->groups = $tags_groups_list->get_groups_by_tag_id($this->id); if ($this->groups == false) { $this->groups = array(); } } return $this->groups; }