josegonzalez/upload — pull request #44 by ceallred (2012-01-23 02:33:33+00:00)
Title: Notice & Warning when deleting record with no uploads

Notice (8): Undefined index: User [APP/Plugin/Upload/Model/Behavior/UploadBehavior.php, line 329]
Warning (2): Invalid argument supplied for foreach() [APP/Plugin/Upload/Model/Behavior/UploadBehavior.php, line 329]

These errors are given when deleting a record without any uploads. Fix checks for empty results and skips the Foreach statement if the results are empty.

First pull request so not sure if I got the format exactly right