Code Duplication    Length = 3-3 lines in 2 locations

class/bbcvols.class.php 1 location

@@ 413-415 (lines=3) @@
410
                $sqlwhere [] = $key . ' LIKE \'%' . $this->db->escape($value) . '%\'';
411
            }
412
        }
413
        if (count($sqlwhere) > 0) {
414
            $sql .= ' WHERE ' . implode(' ' . $filtermode . ' ', $sqlwhere);
415
        }
416
417
        if (!empty($sortfield)) {
418
            $sql .= $this->db->order($sortfield, $sortorder);

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