Index: modules/attachment/attachment.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/attachment/attachment.module,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 attachment.module
--- modules/attachment/attachment.module	3 Feb 2005 22:17:42 -0000	1.3.2.1
+++ modules/attachment/attachment.module	4 Feb 2005 22:46:11 -0000
@@ -45,7 +45,7 @@
             db_query("UPDATE {attachment} SET size=%d, hidden='%s' WHERE aid=%d", $attachment['size'], $attachment['hidden'], $attachment['aid']);
           }
           else {
-            $aid = db_next_id('attachment_aid');
+            $aid = db_next_id('{attachment}_aid');
             db_query("INSERT INTO {attachment} (aid,nid,fid,filename,size,hidden) VALUES (%d,%d,%d,'%s',%d,'%s')",
                      $aid, $node->nid, $attachment['fid'], $attachment['filename'], $attachment['size'], $attachment['hidden']);
           }
@@ -85,7 +85,7 @@
  * Implementation of hook_file_areas()
  */
 function attachment_filemanager_areas() {
-  return array(array('area'=>'attachments','name'=>t('Attachments'),'description'=>t('Area were all node attachments are stored.')));
+  return array(array('area'=>'attachments','name'=>t('Attachments'),'description'=>t('Area where all node attachments are stored.')));
 }
 
 /**
@@ -187,7 +187,7 @@
 
   $file = file_check_upload('file');
   if (!$file) {
-    form_set_error(t('Attachments'), t('No file selected.'));
+    form_set_error('file', t('No file selected.'));
     return $node;
   }
 
@@ -210,7 +210,7 @@
   // Move the upload file into working filestore
   $file = filemanager_add_upload('file', 'attachments', FALSE, $new_attachment["fid"]);
   if (!$file) {
-    form_set_error(t('Attachments'), t('Error saving upload to filestore.'));
+    form_set_error('file', t('Error saving upload to filestore.'));
     return $node;
   }
   $new_attachment['fid'] = $file->fid;
