Code Duplication    Length = 17-17 lines in 2 locations

mail/inc/class.mail_ui.inc.php 2 locations

@@ 3780-3796 (lines=17) @@
3777
					$this->mail_bo->reopen($newFolderName);
3778
					$fS = $this->mail_bo->getFolderStatus($newFolderName,false);
3779
					//error_log(__METHOD__.__LINE__.array2string($fS));
3780
					if ($hasChildren)
3781
					{
3782
						$subFolders = $this->mail_bo->getMailBoxesRecursive($newFolderName, $delimiter, $prefix);
3783
						foreach ($subFolders as $k => $folder)
3784
						{
3785
							// we do not monitor failure or success on subfolders
3786
							if ($folder == $folderName)
3787
							{
3788
								unset($subFolders[$k]);
3789
							}
3790
							else
3791
							{
3792
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
3793
							}
3794
						}
3795
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
3796
					}
3797
3798
					$oA[$_folderName]['id'] = $profileID.self::$delimiter.$newFolderName;
3799
					$oA[$_folderName]['olddesc'] = $oldFolderInfo['shortDisplayName'];
@@ 4010-4026 (lines=17) @@
4007
					$this->mail_bo->reopen($parentFolder);
4008
					$this->mail_bo->getFolderStatus($parentFolder,false,false,false);
4009
					//error_log(__METHOD__.__LINE__.array2string($fS));
4010
					if ($hasChildren)
4011
					{
4012
						$subFolders = $this->mail_bo->getMailBoxesRecursive($parentFolder, $delimiter, $prefix);
4013
						foreach ($subFolders as $k => $folder)
4014
						{
4015
							// we do not monitor failure or success on subfolders
4016
							if ($folder == $folderName)
4017
							{
4018
								unset($subFolders[$k]);
4019
							}
4020
							else
4021
							{
4022
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
4023
							}
4024
						}
4025
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
4026
					}
4027
				}
4028
			}
4029
			if ($folderName==$this->mail_bo->sessionData['mailbox'])