$this->_share->get('owner') == $GLOBALS['registry']->getAuth();
$hash = parent::toHash();
- $hash['name'] = ($owner || !$this->_share->get('owner') ? '' : '[' . $GLOBALS['registry']->convertUsername($this->_share->get('owner'), false) . '] ')
- . $this->_share->get('name');
+ $hash['name'] = $this->_share->get('name')
+ . ($owner || !$this->_share->get('owner') ? '' : ' [' . $GLOBALS['registry']->convertUsername($this->_share->get('owner'), false) . ']');
$hash['desc'] = $this->_share->get('desc');
$hash['owner'] = $owner;
$hash['fg'] = Kronolith::foregroundColor($this->_share);
$this->owner() == $GLOBALS['registry']->getAuth();
$hash = parent::toHash();
- $hash['name'] = ($owner || !$this->owner() ? '' : '[' . $GLOBALS['registry']->convertUsername($this->owner(), false) . '] ')
- . $this->name();
+ $hash['name'] = $this->name()
+ . ($owner || !$this->owner() ? '' : ' [' . $GLOBALS['registry']->convertUsername($this->owner(), false) . ']');
$hash['owner'] = $owner;
$hash['show'] = in_array($id, $GLOBALS['display_calendars']);
$hash['edit'] = $this->hasPermission(Horde_Perms::EDIT);