{"issue":{"created_at":"2011-11-28T16:57:51Z","state":"closed","updated_at":"2011-11-28T16:58:29Z","user":{"gravatar_id":"e80c46e273aeef40f4fee102a03522cf","id":676671,"url":"https://api.github.com/users/computino","avatar_url":"https://secure.gravatar.com/avatar/e80c46e273aeef40f4fee102a03522cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"computino"},"comments":31,"body":"When using repeated events without an end date and with unlimited repetitions the event list crashes (in an endless loop over the recurring events). Happened somewhere between 2.6.4 and 2.6.6.\n\nThe faulty code is Events.php ->getAllEvents from line 143 with the following conditions:\n* there is at least one event with no end date or time to be listed\n* its repeated\n* with no. of reccurences = 0 (endless)\nIn this case  $objEvents->recurrences is = 0 and $objEvents->endTime = 0 and the loop is never finished, the breakout line (the first if within the while-block) never triggers.\n\n```\nwhile ($objEvents->endTime < $intEnd)\n{\n\tif ($objEvents->recurrences > 0 && $count++ >= $objEvents->recurrences)\n\t{\n\t\tbreak;\n\t}\n\t[..]\n}\n```\n\nWorks at the demo also.\n\n--- _Originally created on February 17th, 2009, at 12:25am (ID 524)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"labels":[{"name":"calendar","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/calendar"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"}],"id":2369941,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":524,"title":"repeated Events can crash Typolight","closed_at":"2011-11-28T16:58:29Z","html_url":"https://github.com/contao/test/issues/524","url":"https://api.github.com/repos/contao/test/issues/524","milestone":{"created_at":"2011-11-28T15:58:47Z","state":"closed","closed_issues":10,"due_on":null,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":10,"title":"2.6.7","description":"TYPOlight 2.6.7 (maintenance release)","open_issues":0,"url":"https://api.github.com/repos/contao/test/milestones/10"}},"action":"closed"}