Drupal Association members fund grants that make connections all over the world.
This patch corrects the following issue when creating or editing image nodes: Due to validation taking place in the submit handler, there is no way to prevent nodes without a valid image being created. Currently this can happen by submitting a new node without any image at all, or by uploading an image which exceeds the allowed file size.
This issue has been solved by moving the image validation from #submit into the #validate handler, where it is supposed to be.
Additionally, the old D5-style $_SESSION code has been replaced by state-of-the-art $form_state handling and some debugging code has been removed.