# 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/node_gallery/node_gallery.inc
--- contributions/modules/node_gallery/node_gallery.inc Base (1.2.2.38)
+++ contributions/modules/node_gallery/node_gallery.inc Locally Modified (Based On 1.2.2.38)
@@ -539,7 +539,7 @@
   // If it's an image, and it's set as the cover image, save the value to the table
   if ($image->is_cover) {
     // If this image is the cover image for another gallery, it's being moved.  We'll NULL out the old gallery's cover image
-    db_query("UPDATE {node_gallery_galleries} SET cover_image = NULL, weight = 0 WHERE gid = %d", $gallery->gid);
+    db_query("UPDATE {node_gallery_galleries} SET cover_image = NULL WHERE gid = %d", $gallery->gid);
     // If we start adding to the node_gallery_galleries table, we'll need to node_load() it
     $gallery->cover_image = $image->nid;
   }  
