diff --git a/plugins/ktcore/folder/addDocument.php b/plugins/ktcore/folder/addDocument.php index f566450..248dd77 100644 --- a/plugins/ktcore/folder/addDocument.php +++ b/plugins/ktcore/folder/addDocument.php @@ -101,7 +101,9 @@ class KTFolderAddDocumentAction extends KTFolderAction { } var name=arrPath[arrPath.length-1]; var name=name.split('.'); - name.pop(); + if(name.length > 1){ + name.pop(); + } var title=name.join('.'); document.getElementById('document_name').value=title;";