reversed in_array() arguments in UsersalmonAction

This commit is contained in:
Evan Prodromou 2010-02-21 22:41:02 -05:00
parent de522d7978
commit 13fb7bef78

View File

@ -80,7 +80,7 @@ class UsersalmonAction extends SalmonAction
throw new ClientException("In reply to a notice not by this user");
}
} else if (!empty($context->attention)) {
if (!in_array($context->attention, $this->user->uri)) {
if (!in_array($this->user->uri, $context->attention)) {
throw new ClientException("To the attention of user(s) not including this one!");
}
} else {