Code Duplication    Length = 5-5 lines in 2 locations

programs/utilit/agent_right.class.php 2 locations

@@ 676-680 (lines=5) @@
673
	    require_once dirname(__FILE__).'/entry.class.php';
674
		$I = new absences_EntryIterator();
675
		
676
		if (!isset($date) || '0000-00-00' === $date) {
677
		    $I->status = $status;
678
		} else {
679
		    $I->createdOn = $date.' 23:59:59';
680
		}
681
		
682
		$I->users = array($this->id_user);
683
		$I->id_right = $this->id_right;
@@ 727-731 (lines=5) @@
724
	    require_once dirname(__FILE__).'/cet_deposit_request.class.php';
725
	    $I = new absences_CetDepositRequestIterator();
726
	    
727
	    if (!isset($date) || '0000-00-00' === $date) {
728
	        $I->status = $status;
729
	    } else {
730
	        $I->createdOn = $date.' 23:59:59';
731
	    }
732
	    
733
	    $I->archived = null;
734
	    $I->users = array($this->id_user);