{"action":"created","issue":{"url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3381","repository_url":"https://api.github.com/repos/SimpleMachines/SMF2.1","labels_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3381/labels{/name}","comments_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3381/comments","events_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3381/events","html_url":"https://github.com/SimpleMachines/SMF2.1/issues/3381","id":146009589,"number":3381,"title":"Attachment insert never more works","user":{"login":"PortaMx","id":2270223,"avatar_url":"https://avatars.githubusercontent.com/u/2270223?v=3","gravatar_id":"","url":"https://api.github.com/users/PortaMx","html_url":"https://github.com/PortaMx","followers_url":"https://api.github.com/users/PortaMx/followers","following_url":"https://api.github.com/users/PortaMx/following{/other_user}","gists_url":"https://api.github.com/users/PortaMx/gists{/gist_id}","starred_url":"https://api.github.com/users/PortaMx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PortaMx/subscriptions","organizations_url":"https://api.github.com/users/PortaMx/orgs","repos_url":"https://api.github.com/users/PortaMx/repos","events_url":"https://api.github.com/users/PortaMx/events{/privacy}","received_events_url":"https://api.github.com/users/PortaMx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-04-05T14:39:21Z","updated_at":"2016-04-08T23:48:32Z","closed_at":null,"body":"I download the archive today and see, that the image attachment not more works.\r\n\r\nIf I attach a Image and then insert this in the message, I see the message\r\n**No message is associated with this attachment.**\r\nand the image is only shown as attach.\r\n\r\nOn Preview I get the error\r\n**Undefined index: name=image11.png type=image/png]5\r\nFile: /Sources/Subs-Attachments.php\r\nLine: 904**"},"comment":{"url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/comments/207649829","html_url":"https://github.com/SimpleMachines/SMF2.1/issues/3381#issuecomment-207649829","issue_url":"https://api.github.com/repos/SimpleMachines/SMF2.1/issues/3381","id":207649829,"user":{"login":"MissAllSunday","id":3420756,"avatar_url":"https://avatars.githubusercontent.com/u/3420756?v=3","gravatar_id":"","url":"https://api.github.com/users/MissAllSunday","html_url":"https://github.com/MissAllSunday","followers_url":"https://api.github.com/users/MissAllSunday/followers","following_url":"https://api.github.com/users/MissAllSunday/following{/other_user}","gists_url":"https://api.github.com/users/MissAllSunday/gists{/gist_id}","starred_url":"https://api.github.com/users/MissAllSunday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MissAllSunday/subscriptions","organizations_url":"https://api.github.com/users/MissAllSunday/orgs","repos_url":"https://api.github.com/users/MissAllSunday/repos","events_url":"https://api.github.com/users/MissAllSunday/events{/privacy}","received_events_url":"https://api.github.com/users/MissAllSunday/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T23:48:32Z","updated_at":"2016-04-08T23:48:32Z","body":"I agree on the space after the if but otherwise its not really necessary to cast all those ints, the DB layer does that for you. Perhaps one cast and check for is_int if we are being paranoid about it but thats it."}}