Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 3764-3780 (lines=17) @@
3761
					$this->mail_bo->reopen($newFolderName);
3762
					$fS = $this->mail_bo->getFolderStatus($newFolderName,false);
3763
					//error_log(__METHOD__.__LINE__.array2string($fS));
3764
					if ($hasChildren)
3765
					{
3766
						$subFolders = $this->mail_bo->getMailBoxesRecursive($newFolderName, $delimiter, $prefix);
3767
						foreach ($subFolders as $k => $folder)
3768
						{
3769
							// we do not monitor failure or success on subfolders
3770
							if ($folder == $folderName)
3771
							{
3772
								unset($subFolders[$k]);
3773
							}
3774
							else
3775
							{
3776
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
3777
							}
3778
						}
3779
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
3780
					}
3781
3782
					$oA[$_folderName]['id'] = $profileID.self::$delimiter.$newFolderName;
3783
					$oA[$_folderName]['olddesc'] = $oldFolderInfo['shortDisplayName'];
@@ 3998-4014 (lines=17) @@
3995
					$this->mail_bo->reopen($parentFolder);
3996
					$this->mail_bo->getFolderStatus($parentFolder,false,false,false);
3997
					//error_log(__METHOD__.__LINE__.array2string($fS));
3998
					if ($hasChildren)
3999
					{
4000
						$subFolders = $this->mail_bo->getMailBoxesRecursive($parentFolder, $delimiter, $prefix);
4001
						foreach ($subFolders as $k => $folder)
4002
						{
4003
							// we do not monitor failure or success on subfolders
4004
							if ($folder == $folderName)
4005
							{
4006
								unset($subFolders[$k]);
4007
							}
4008
							else
4009
							{
4010
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
4011
							}
4012
						}
4013
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
4014
					}
4015
				}
4016
			}
4017
			if ($folderName==$this->mail_bo->sessionData['mailbox'])