Code Duplication    Length = 7-7 lines in 2 locations

programs/vacadmb.php 1 location

@@ 209-215 (lines=7) @@
206
					}
207
				}
208
209
			if( sizeof($aaareq) > 0 )
210
				{
211
				if( sizeof($aaareq) > 1 )
212
					$req .= implode(' AND ', $aaareq);
213
				else
214
					$req .= $aaareq[0];
215
				}
216
				
217
				
218
			$orderby = bab_rp('orderby', 'begin');

programs/utilit/rightlist.ui.php 1 location

@@ 183-189 (lines=7) @@
180
        }
181
182
183
        if( isset($aaareq) && sizeof($aaareq) > 0 )
184
        {
185
            if( sizeof($aaareq) > 1 )
186
                $req .= implode(' and ', $aaareq);
187
            else
188
                $req .= $aaareq[0];
189
        }
190
        $req .= " order by r.date_entry desc, r.id";
191
192
        list($total) = $babDB->db_fetch_row($babDB->db_query("select count(*) as total from ".$req));