Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 3754-3770 (lines=17) @@
3751
					$this->mail_bo->reopen($newFolderName);
3752
					$fS = $this->mail_bo->getFolderStatus($newFolderName,false);
3753
					//error_log(__METHOD__.__LINE__.array2string($fS));
3754
					if ($hasChildren)
3755
					{
3756
						$subFolders = $this->mail_bo->getMailBoxesRecursive($newFolderName, $delimiter, $prefix);
3757
						foreach ($subFolders as $k => $folder)
3758
						{
3759
							// we do not monitor failure or success on subfolders
3760
							if ($folder == $folderName)
3761
							{
3762
								unset($subFolders[$k]);
3763
							}
3764
							else
3765
							{
3766
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
3767
							}
3768
						}
3769
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
3770
					}
3771
3772
					$oA[$_folderName]['id'] = $profileID.self::$delimiter.$newFolderName;
3773
					$oA[$_folderName]['olddesc'] = $oldFolderInfo['shortDisplayName'];
@@ 3988-4004 (lines=17) @@
3985
					$this->mail_bo->reopen($parentFolder);
3986
					$this->mail_bo->getFolderStatus($parentFolder,false,false,false);
3987
					//error_log(__METHOD__.__LINE__.array2string($fS));
3988
					if ($hasChildren)
3989
					{
3990
						$subFolders = $this->mail_bo->getMailBoxesRecursive($parentFolder, $delimiter, $prefix);
3991
						foreach ($subFolders as $k => $folder)
3992
						{
3993
							// we do not monitor failure or success on subfolders
3994
							if ($folder == $folderName)
3995
							{
3996
								unset($subFolders[$k]);
3997
							}
3998
							else
3999
							{
4000
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
4001
							}
4002
						}
4003
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
4004
					}
4005
				}
4006
			}
4007
			if ($folderName==$this->mail_bo->sessionData['mailbox'])