modolabs/Kurogo-Mobile-Web — pull request #39 by adamfranco (2011-10-27 16:07:23+00:00)
Title: If there is garbage at the start of an ICal feed, throw an Exception rather than a Fatal Error.

Trying to parse an ICal feed with garbage at the beginning of the feed
was causing fatal errors due to end($nesting) returning FALSE rather than an
object. This change allows parsing to throw an Exception that might be
handled more gracefully.

This change is based of an old point in the master branch (where we last merged from), but should merge cleanly into the current master.