silverstripe/silverstripe-framework — pull request #2621 by tractorcow (2013-10-29 21:36:39+00:00)
Title: BUG Fix undefined index ID

I have had a few odd cases where a record without a set ID would throw up PHP notices. This is a slightly more robust check.