diff --git a/actions/tagother.php b/actions/tagother.php index d4be3dd33b..a5129faee1 100644 --- a/actions/tagother.php +++ b/actions/tagother.php @@ -37,12 +37,12 @@ class TagotherAction extends Action { } 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); diff --git a/lib/profilelist.php b/lib/profilelist.php index 7fb0eb2d3c..6ecb9c9238 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -150,8 +150,8 @@ class ProfileList { } common_element('a', array('href' => common_local_url('tagother', - array('id' => $this->profile->id, - 'class' => 'tagother'))), + array('id' => $this->profile->id)), + 'class' => 'tagother'), _('Tag')); }