{"action":"opened","issue":{"url":"https://api.github.com/repos/fabarea/media/issues/11","labels_url":"https://api.github.com/repos/fabarea/media/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/fabarea/media/issues/11/comments","events_url":"https://api.github.com/repos/fabarea/media/issues/11/events","html_url":"https://github.com/fabarea/media/issues/11","id":64242817,"number":11,"title":"updateRefIndexTable($tableName, $id); Response can be boolean in TYPO3 6.2.11","user":{"login":"mrk131324","id":1252486,"avatar_url":"https://avatars.githubusercontent.com/u/1252486?v=3","gravatar_id":"","url":"https://api.github.com/users/mrk131324","html_url":"https://github.com/mrk131324","followers_url":"https://api.github.com/users/mrk131324/followers","following_url":"https://api.github.com/users/mrk131324/following{/other_user}","gists_url":"https://api.github.com/users/mrk131324/gists{/gist_id}","starred_url":"https://api.github.com/users/mrk131324/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrk131324/subscriptions","organizations_url":"https://api.github.com/users/mrk131324/orgs","repos_url":"https://api.github.com/users/mrk131324/repos","events_url":"https://api.github.com/users/mrk131324/events{/privacy}","received_events_url":"https://api.github.com/users/mrk131324/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-25T11:02:56Z","updated_at":"2015-03-25T11:02:56Z","closed_at":null,"body":"Two Hooks in the media ext. use the method\r\n\r\n    $refIndexObj->updateRefIndexTable($tableName, $id);\r\n\r\nfrom the core in hooks and make strong constraints that its response is an array. But since TYPO3 6.2.11 it can also be boolean (FALSE). As a result saving a document with FAL relations can lead to a fatal error if no relations were found. \r\n\r\nThe method is used in `Classes/Hook/DataHandlerHook.php` in lines 72 and 99. Adding a simple\r\n\r\n    if (FALSE === $indexes) $indexes = array();\r\n\r\nsolves the issue but I think the real issue is in the core.\r\n"}}