Code Duplication    Length = 3-3 lines in 3 locations

programs/utilit/right.class.php 2 locations

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

programs/utilit/agent_right.class.php 1 location

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