{"action":"closed","issue":{"url":"https://api.github.com/repos/mybb/mybb/issues/1978","labels_url":"https://api.github.com/repos/mybb/mybb/issues/1978/labels{/name}","comments_url":"https://api.github.com/repos/mybb/mybb/issues/1978/comments","events_url":"https://api.github.com/repos/mybb/mybb/issues/1978/events","html_url":"https://github.com/mybb/mybb/issues/1978","id":74154618,"number":1978,"title":"Send PM: Duplicate check not working for multiple recipients","user":{"login":"PaulBender","id":1266734,"avatar_url":"https://avatars.githubusercontent.com/u/1266734?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulBender","html_url":"https://github.com/PaulBender","followers_url":"https://api.github.com/users/PaulBender/followers","following_url":"https://api.github.com/users/PaulBender/following{/other_user}","gists_url":"https://api.github.com/users/PaulBender/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulBender/subscriptions","organizations_url":"https://api.github.com/users/PaulBender/orgs","repos_url":"https://api.github.com/users/PaulBender/repos","events_url":"https://api.github.com/users/PaulBender/events{/privacy}","received_events_url":"https://api.github.com/users/PaulBender/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mybb/mybb/labels/1.8","name":"1.8","color":"5319e7"},{"url":"https://api.github.com/repos/mybb/mybb/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mybb/mybb/labels/s:fixed","name":"s:fixed","color":"00b200"}],"state":"closed","locked":false,"assignee":{"login":"Sama34","id":1786584,"avatar_url":"https://avatars.githubusercontent.com/u/1786584?v=3","gravatar_id":"","url":"https://api.github.com/users/Sama34","html_url":"https://github.com/Sama34","followers_url":"https://api.github.com/users/Sama34/followers","following_url":"https://api.github.com/users/Sama34/following{/other_user}","gists_url":"https://api.github.com/users/Sama34/gists{/gist_id}","starred_url":"https://api.github.com/users/Sama34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sama34/subscriptions","organizations_url":"https://api.github.com/users/Sama34/orgs","repos_url":"https://api.github.com/users/Sama34/repos","events_url":"https://api.github.com/users/Sama34/events{/privacy}","received_events_url":"https://api.github.com/users/Sama34/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mybb/mybb/milestones/11","html_url":"https://github.com/mybb/mybb/milestones/1.8.6","labels_url":"https://api.github.com/repos/mybb/mybb/milestones/11/labels","id":1026368,"number":11,"title":"1.8.6","description":"","creator":{"login":"Sama34","id":1786584,"avatar_url":"https://avatars.githubusercontent.com/u/1786584?v=3","gravatar_id":"","url":"https://api.github.com/users/Sama34","html_url":"https://github.com/Sama34","followers_url":"https://api.github.com/users/Sama34/followers","following_url":"https://api.github.com/users/Sama34/following{/other_user}","gists_url":"https://api.github.com/users/Sama34/gists{/gist_id}","starred_url":"https://api.github.com/users/Sama34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sama34/subscriptions","organizations_url":"https://api.github.com/users/Sama34/orgs","repos_url":"https://api.github.com/users/Sama34/repos","events_url":"https://api.github.com/users/Sama34/events{/privacy}","received_events_url":"https://api.github.com/users/Sama34/received_events","type":"User","site_admin":false},"open_issues":122,"closed_issues":18,"state":"open","created_at":"2015-03-17T23:25:48Z","updated_at":"2015-06-25T07:29:16Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-05-07T22:52:36Z","updated_at":"2015-06-25T07:29:16Z","closed_at":"2015-06-25T07:29:16Z","body":"Hi,\n\nFirst the query to check for duplicates is performed\nPHP Code:\nWHERE&nbsp;LOWER(u.username)='\".&#36;db-&gt;escape_string(my_strtolower(&#36;mybb-&gt;get_input('to'))).\"'&nbsp;\nand afterwards the recipient list is split into the single recipients...\nPHP Code:\n//&nbsp;Split&nbsp;up&nbsp;any&nbsp;recipients&nbsp;we&nbsp;have&nbsp;&nbsp;&nbsp;&nbsp;&#36;pm['to']&nbsp;=&nbsp;explode(\",\",&nbsp;&#36;mybb-&gt;get_input('to'));&nbsp;\n\nShould be the other way round e.g. with an in-sql statement...\n\nOriginal thread: [Send PM: Duplicate check not working for multiple recipients](http://community.mybb.com/thread-170422.html)"}}