Commit 3bd52b58726c7ae128e82d94a2103bd83c8e746c
1 parent
2f917a82
Added extra check on folder updates
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1300 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/foldermanagement/editBL.php
| ... | ... | @@ -37,7 +37,7 @@ if (checkSession()) { |
| 37 | 37 | $oFolder->setIsPublic(false); |
| 38 | 38 | } |
| 39 | 39 | $bSuccessfulUpdate = false; |
| 40 | - if (strcmp($oFolder->getName(), $fFolderName) != 0) { | |
| 40 | + if (isset($fFolderName) && strcmp($oFolder->getName(), $fFolderName) != 0) { | |
| 41 | 41 | //folder name has changed, update the full_path |
| 42 | 42 | $sOldName = $oFolder->getName(); |
| 43 | 43 | $sOldPath = $default->documentRoot . "/" . $oFolder->getFullPath() . "/" . $oFolder->getName(); | ... | ... |