Code Duplication    Length = 5-5 lines in 3 locations

programs/utilit/rightlist.ui.php 1 location

@@ 149-153 (lines=5) @@
146
            $dateb = $ar[2]."-".$ar[1]."-".$ar[0];
147
        }
148
149
        if( $datee != "" )
150
        {
151
            $ar = explode("-", $datee);
152
            $datee = $ar[2]."-".$ar[1]."-".$ar[0];
153
        }
154
155
        if( $dateb != "" && $datee != "")
156
        {

programs/vacadmb.php 2 locations

@@ 187-191 (lines=5) @@
184
				    $aaareq[] = "p.id_organization='".$babDB->db_escape_string($organization)."'";
185
				}
186
187
				if( $dateb != "" )
188
					{
189
					$ar = explode("-", $dateb);
190
					$dateb = $ar[2]."-".$ar[1]."-".$ar[0];
191
					}
192
193
				if( $datee != "" )
194
					{
@@ 193-197 (lines=5) @@
190
					$dateb = $ar[2]."-".$ar[1]."-".$ar[0];
191
					}
192
193
				if( $datee != "" )
194
					{
195
					$ar = explode("-", $datee);
196
					$datee = $ar[2]."-".$ar[1]."-".$ar[0];
197
					}
198
199
				if( $datee != "" )
200
					{