{"action":"opened","issue":{"url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2374","labels_url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2374/labels{/name}","comments_url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2374/comments","events_url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2374/events","html_url":"https://github.com/symphonycms/symphony-2/issues/2374","id":61018252,"number":2374,"title":"[2.6] \"Invalid argument\" when DB is not available","user":{"login":"jurajkapsz","id":2209893,"avatar_url":"https://avatars.githubusercontent.com/u/2209893?v=3","gravatar_id":"","url":"https://api.github.com/users/jurajkapsz","html_url":"https://github.com/jurajkapsz","followers_url":"https://api.github.com/users/jurajkapsz/followers","following_url":"https://api.github.com/users/jurajkapsz/following{/other_user}","gists_url":"https://api.github.com/users/jurajkapsz/gists{/gist_id}","starred_url":"https://api.github.com/users/jurajkapsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jurajkapsz/subscriptions","organizations_url":"https://api.github.com/users/jurajkapsz/orgs","repos_url":"https://api.github.com/users/jurajkapsz/repos","events_url":"https://api.github.com/users/jurajkapsz/events{/privacy}","received_events_url":"https://api.github.com/users/jurajkapsz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-13T09:06:52Z","updated_at":"2015-03-13T09:06:52Z","closed_at":null,"body":"When the database is not available (e.g. when I didn't start the server :), there comes up a following warning:\r\n\r\n    Symphony Warning: Invalid argument supplied for foreach()\r\n    \r\n    An error occurred in .../symphony/lib/boot/func.utilities.php around line 193\r\n    ...\r\n    (193) foreach ($_SESSION as $contents) {\r\n    ...\r\n\r\nMaybe there should be another type of warning or check?"}}