     vQueryString VARCHAR2(32767) := '';
     retResources userTypes.resourceTable;
     newIndex NUMBER;
-    vOnlineProject NUMBER := opencmsProject.onlineProject(pProjectID).project_id;
+    vOnlineProject NUMBER := opencmsconstants.C_PROJECT_ONLINE_ID;
   BEGIN
     bAnyList := '';
     curResource := readFolder(pUserId, pProjectId, pResourceName);

-- for the project with project_id = pProjectId or for online-projekt
--------------------------------------------------------------------------------------------------------------
  FUNCTION readFileHeader(pUserId NUMBER, pProjectID NUMBER, pFileName VARCHAR2) RETURN userTypes.anyCursor IS
    curOnlineProject userTypes.anyCursor;
    vOnlineProject NUMBER;
    curResource userTypes.anyCursor;
    recFile cms_resources%ROWTYPE;
  BEGIN
    vOnlineProject := opencmsProject.onlineProject(pProjectId).project_id;
    -- is pFileName a folder? => readFolder
    IF substr(pFileName, -1) = '/' THEN
      curResource := readFolder(pUserId, pProjectId, pFileName);

    vState NUMBER := opencmsConstants.C_STATE_NEW;
    vUserGroupId NUMBER;
    vNewResourceId NUMBER;
    vOnlineProject NUMBER := opencmsconstants.C_PROJECT_ONLINE_ID;
    vTableName VARCHAR2(20);
    vRootFolder NUMBER;
  BEGIN
    IF pProjectId = vOnlineProject THEN
      vTableName := 'CMS_ONLINE_RESOURCES';
    ELSE
