Code Duplication    Length = 3-3 lines in 2 locations

class/bbcvols.class.php 1 location

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

class/bbctypes.class.php 1 location

@@ 264-266 (lines=3) @@
261
            }
262
        }
263
264
        if (count($sqlwhere) > 0) {
265
            $sql .= ' WHERE ' . implode(' ' . $filtermode . ' ', $sqlwhere);
266
        }
267
268
        if (!empty($sortfield)) {
269
            $sql .= $this->db->order($sortfield, $sortorder);