Code Duplication    Length = 3-3 lines in 3 locations

programs/utilit/right.class.php 2 locations

@@ 740-742 (lines=3) @@
737
	{
738
		$access= true;
739
		
740
		if( $this->date_begin_valid != '0000-00-00' && (bab_mktime($this->date_begin_valid." 00:00:00") > mktime())){
741
			$access= false;
742
		}
743
		
744
		if( $this->date_end_valid != '0000-00-00' && (bab_mktime($this->date_end_valid." 23:59:59") < mktime())){
745
			$access= false;
@@ 744-746 (lines=3) @@
741
			$access= false;
742
		}
743
		
744
		if( $this->date_end_valid != '0000-00-00' && (bab_mktime($this->date_end_valid." 23:59:59") < mktime())){
745
			$access= false;
746
		}
747
		
748
		return $access;
749
	}

programs/utilit/agent_right.class.php 1 location

@@ 1100-1102 (lines=3) @@
1097
			$access= false;
1098
		}
1099
		
1100
		if( $this->getDateEndValid() != '0000-00-00' && (bab_mktime($this->getDateEndValid()." 23:59:59") < mktime())){
1101
			$access= false;
1102
		}
1103
		
1104
		return $access;
1105
	}