# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/media_gallery/media_gallery.module
--- contributions/modules/media_gallery/media_gallery.module Base (1.7)
+++ contributions/modules/media_gallery/media_gallery.module Locally Modified (Based On 1.7)
@@ -1151,7 +1151,7 @@
   // $form['#term'] has a totally different structure) so make sure to check
   // those conditions first before continuing. We only want to alter this form
   // if a media gallery taxonomy term is being edited.
-  if (isset($form_state['confirm_delete']) || !is_array($form['#term']) || $form['#term']['vid'] != variable_get('media_gallery_collection_vid')) {
+  if (isset($form_state['confirm_delete']) || $form['vid']['#value'] != variable_get('media_gallery_collection_vid')) {
     return;
   }
 
