} else {
$id = $this->trimmed('id');
if (!$id) {
- $this->client_error(_('No profile to tag.'));
+ $this->client_error(_('No id argument.'));
return;
}
$profile = Profile::staticGet('id', $id);
- if ($profile) {
- $this->client_error(_('No profile to tag.'));
+ if (!$profile) {
+ $this->client_error(_('No profile with that ID.'));
return;
}
$this->show_form($profile);
}
common_element('a', array('href' => common_local_url('tagother',
- array('id' => $this->profile->id,
- 'class' => 'tagother'))),
+ array('id' => $this->profile->id)),
+ 'class' => 'tagother'),
_('Tag'));
}