Code Duplication    Length = 3-3 lines in 3 locations

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
	}

programs/utilit/right.class.php 2 locations

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