]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
reversed in_array() arguments in UsersalmonAction
authorEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 03:41:02 +0000 (22:41 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 03:41:02 +0000 (22:41 -0500)
plugins/OStatus/actions/usersalmon.php

index 12c74798f20d8d2b401c59c31008fc014db94e9e..3c0f72855b9c9bc5489c6470a99f8a7b05552c13 100644 (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 {