function haveGroups()
{
- return (!empty($this->groups) && ($this->groups->N > 0));
+ return ($this->groups instanceof User_group && $this->groups->N > 0);
}
function tag()
{
$items = array();
- while ($this->groups->fetch()) {
+ while ($this->groups instanceof User_group && $this->groups->fetch()) {
$items[] = array('placeholder',
- array('nickname' => $this->groups->nickname,
+ array('nickname' => $this->groups->getNickname(),
'mainpage' => $this->groups->homeUrl()),
- $this->groups->getBestName(),
+ $this->groups->getNickname(),
$this->groups->getBestName()
);
}
_('See all groups you belong to.'));
}
- function item($actionName, $args, $label, $description, $id=null, $cls=null)
+ function item($actionName, array $args, $label, $description, $id=null, $cls=null)
{
if ($actionName != 'placeholder') {
return parent::item($actionName, $args, $label, $description, $id, $cls);