Commit 79aa60088e9c91ff06b7b56e6a99d05c7c918daf

Authored by megan_w
1 parent 080f1f64

KTS-3129

"After upgrade user can conenct KTE to Server but cannot upload files or create folders"
Fixed. 

Committed by: Megan Watson
Reviewed by: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8226 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/upgrades/UpgradeFunctions.inc.php
... ... @@ -165,7 +165,7 @@ class UpgradeFunctions {
165 165 if (empty($parent_ids)) $parent_ids = null;
166 166 if (empty($full_path)) $full_path = null;
167 167  
168   - $full_path = (empty($full_path))?$name:($full_path . '/' . $name);
  168 + if($folderid != 1) $full_path = (empty($full_path))?$name:($full_path . '/' . $name);
169 169 $folder_ids [] = $folderid;
170 170  
171 171 $sql = "update folders set name=?,description=?, full_path=?, parent_folder_ids=? where id=?";
... ...