Index: openacs-4/packages/file-storage/sql/postgresql/file-storage-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/sql/postgresql/file-storage-create.sql,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/file-storage/sql/postgresql/file-storage-create.sql	7 Mar 2002 06:27:16 -0000	1.12
+++ openacs-4/packages/file-storage/sql/postgresql/file-storage-create.sql	13 Mar 2002 22:50:53 -0000	1.13
@@ -81,7 +81,7 @@
             where package_id = get_root_folder__package_id;
         else
             -- must be a new instance.  Gotta create a new root folder
-            v_folder_id := file_storage__new_root_folder(get_root_folder__package_id);
+            v_folder_id := file_storage__new_root_folder(get_root_folder__package_id, null, null);
         end if;
 
         return v_folder_id;
@@ -109,6 +109,8 @@
 
     if NOT FOUND then
         return null;
+    else
+        return v_package_id;
     end if;
 end;' language 'plpgsql' with (iscachable);
 
