Code Duplication    Length = 5-5 lines in 2 locations

calendar/inc/class.calendar_merge.inc.php 1 location

@@ 184-188 (lines=5) @@
181
			$this->ids = $events;
182
		}
183
		// as this function allows to pass query- parameters, we need to check the result of the query against export_limit restrictions
184
		if (bo_merge::hasExportLimit($this->export_limit) && !bo_merge::is_export_limit_excepted() && count($events) > (int)$this->export_limit)
185
		{
186
			$err = lang('No rights to export more than %1 entries!',(int)$this->export_limit);
187
			throw new egw_exception_wrong_userinput($err);
188
		}
189
		$replacements = array();
190
		$n = 0;
191
		foreach($events as $event)

etemplate/inc/class.bo_merge.inc.php 1 location

@@ 548-552 (lines=5) @@
545
			return false;
546
		}
547
548
		if (self::hasExportLimit($this->export_limit) && !self::is_export_limit_excepted() && count($ids) > (int)$this->export_limit)
549
		{
550
			$err = lang('No rights to export more than %1 entries!',(int)$this->export_limit);
551
			return false;
552
		}
553
554
		// fix application/msword mimetype for rtf files
555
		if ($mimetype == 'application/msword' && strtolower(substr($document,-4)) == '.rtf')