Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 4135-4151 (lines=17) @@
4132
					$this->mail_bo->reopen($parentFolder);
4133
					$this->mail_bo->getFolderStatus($parentFolder,false,false,false);
4134
					//error_log(__METHOD__.__LINE__.array2string($fS));
4135
					if ($hasChildren)
4136
					{
4137
						$subFolders = $this->mail_bo->getMailBoxesRecursive($parentFolder, $delimiter, $prefix);
4138
						foreach ($subFolders as $k => $folder)
4139
						{
4140
							// we do not monitor failure or success on subfolders
4141
							if ($folder == $folderName)
4142
							{
4143
								unset($subFolders[$k]);
4144
							}
4145
							else
4146
							{
4147
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
4148
							}
4149
						}
4150
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
4151
					}
4152
				}
4153
			}
4154
			if ($folderName==$this->mail_bo->sessionData['mailbox'])
@@ 3905-3921 (lines=17) @@
3902
					$this->mail_bo->reopen($newFolderName);
3903
					$fS = $this->mail_bo->getFolderStatus($newFolderName,false);
3904
					//error_log(__METHOD__.__LINE__.array2string($fS));
3905
					if ($hasChildren)
3906
					{
3907
						$subFolders = $this->mail_bo->getMailBoxesRecursive($newFolderName, $delimiter, $prefix);
3908
						foreach ($subFolders as $k => $folder)
3909
						{
3910
							// we do not monitor failure or success on subfolders
3911
							if ($folder == $folderName)
3912
							{
3913
								unset($subFolders[$k]);
3914
							}
3915
							else
3916
							{
3917
								$rv = $this->mail_bo->icServer->subscribeMailbox($folder, true);
3918
							}
3919
						}
3920
						//error_log(__METHOD__.__LINE__.' Fetched Subfolders->'.array2string($subFolders));
3921
					}
3922
3923
					$oA[$_folderName]['id'] = $profileID.self::$delimiter.$newFolderName;
3924
					$oA[$_folderName]['olddesc'] = $oldFolderInfo['shortDisplayName'];