Code Duplication    Length = 7-7 lines in 2 locations

programs/utilit/rightlist.ui.php 1 location

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

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');