Code Duplication    Length = 3-3 lines in 2 locations

class/bbctypes.class.php 1 location

@@ 276-278 (lines=3) @@
273
            }
274
        }
275
276
		if (count($sqlwhere) > 0) {
277
			$sql .= ' WHERE ' . implode(' '.$filtermode.' ', $sqlwhere);
278
		}
279
		
280
		if (!empty($sortfield)) {
281
			$sql .= $this->db->order($sortfield,$sortorder);

class/bbcvols.class.php 1 location

@@ 424-426 (lines=3) @@
421
                $sqlwhere [] = $key . ' LIKE \'%' . $this->db->escape($value) . '%\'';
422
            }
423
        }
424
        if (count($sqlwhere) > 0) {
425
            $sql .= ' WHERE ' . implode(' ' . $filtermode . ' ', $sqlwhere);
426
        }
427
428
        if (!empty($sortfield)) {
429
            $sql .= $this->db->order($sortfield, $sortorder);