Index: webfm.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webfm/webfm.module,v
retrieving revision 1.20
diff -u -r1.20 webfm.module
--- webfm.module	18 Feb 2008 19:18:06 -0000	1.20
+++ webfm.module	20 Feb 2008 13:51:50 -0000
@@ -831,7 +831,7 @@
             $json_data['html'] = webfm_reload_upload('webfm/upload', webfm_version_form($file->filename));
           } else {
             $msg = '';
-            if(webfm_version_upload(WEBFM_REPLACE_RENAME, &$msg)) {
+            if(webfm_version_upload(WEBFM_REPLACE_RENAME, $msg)) {
               // file was inserted into the database
               drupal_set_message(t('Upload Success'));
             } else {
@@ -1414,7 +1414,7 @@
           $filename = trim(rawurldecode($_POST["param1"]));
           if(strcmp($_SESSION['temp_upload']->filename, $filename) === 0) {
             $msg = '';
-            $ret = webfm_version_upload($op, &$msg);
+            $ret = webfm_version_upload($op, $msg);
             webfm_json(array('status' => $ret, 'data' => $msg));
           } else {
             webfm_json(array('status' => FALSE, 'data' => 'invalid file name'));
@@ -1452,7 +1452,7 @@
       break;
 
     case WEBFM_RENAME_NEW:
-      $ret = webfm_upload_new(&$msg);
+      $ret = webfm_upload_new($msg);
       break;
 
     case WEBFM_REPLACE_RENAME:
@@ -1504,13 +1504,13 @@
             $newfile->fformat = $record->fformat;
             $newfile->perm = $record->perm;
             $newfile->dl_cnt = $record->dl_cnt;
-            $ret = webfm_dbinsert_file($newfile, &$msg, (array)$record);
+            $ret = webfm_dbinsert_file($newfile, $msg, (array)$record);
             if($ret)
               $msg = t('Upload success');
           }
         } else {
           // No ajax returned since called by upload directly without version options
-          $ret = webfm_upload_new(&$msg);
+          $ret = webfm_upload_new($msg);
         }
       } else {
         $ret = FALSE;
@@ -1575,7 +1575,7 @@
   if(file_move($_SESSION['temp_upload'], $_SESSION['temp_upload']->dest)) {
     // file was moved to its final destination
     //Insert file into database if under webfm_root
-    if(webfm_dbinsert_file($_SESSION['temp_upload'], &$msg)) {
+    if(webfm_dbinsert_file($_SESSION['temp_upload'], $msg)) {
       // file was inserted into the database
       $msg = t('Upload success');
       return TRUE;
