# 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/video/video.module
--- contributions/modules/video/video.module Base (1.69.4.17.2.7.2.68)
+++ contributions/modules/video/video.module Locally Modified (Based On 1.69.4.17.2.7.2.68)
@@ -619,8 +619,7 @@
       $filename = $field['field_name'] . '_' . $element['#delta'] . '_thumbs';
       if (isset($_FILES['files']) && is_array($_FILES['files']['name']) && !empty($_FILES['files']['name'][$filename])) {
         video_upload_manual_thumb($element);
-      }
-      else {
+      } else {
         $element['data']['video_thumb']['#value'] = $element['#default_value']['data']['video_thumb'];
       }
 
@@ -663,7 +662,7 @@
   $old_thumb = $element['data']['video_thumb']['#value'];
   if (!empty($old_thumb)) {
     if (file_delete($old_thumb)) {
-      db_query('DELETE FROM {files} WHERE filepath=%d', $old_thumb);
+      db_query('DELETE FROM {files} WHERE filepath=\'%s\'', $old_thumb);
     }
   }
   // Make the file permanent and store it in the form.
