Code Duplication    Length = 5-5 lines in 2 locations

programs/utilit/right.act.php 2 locations

@@ 113-117 (lines=5) @@
110
		$date_begin = self::getDateValue($begin);
111
		$date_end = self::getDateValue($end);
112
		
113
		if ('0000-00-00' === $date_begin)
114
		{
115
			$babBody->addError(sprintf(absences_translate("Invalid start date for the %s"), mb_strtolower($title)));
116
			return false;
117
		}
118
		
119
		if ('0000-00-00' === $date_end)
120
		{
@@ 119-123 (lines=5) @@
116
			return false;
117
		}
118
		
119
		if ('0000-00-00' === $date_end)
120
		{
121
			$babBody->addError(sprintf(absences_translate("Invalid end date for the %s"), mb_strtolower($title)));
122
			return false;
123
		}
124
		
125
		if($date_begin > $date_end )
126
		{