Received an undefined index warning when trying to programatically save files.

Solution is to wrap the logic in !empty()

Comments

jgraham’s picture

Patch resolves the issue for us.