|
@@ 4583-4587 (lines=5) @@
|
| 4580 |
|
if ($tvsort != '') { |
| 4581 |
|
$tvsort = 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $tvsort)))); |
| 4582 |
|
} |
| 4583 |
|
if ($tvidnames == "*") { |
| 4584 |
|
$query = "tv.id<>0"; |
| 4585 |
|
} else { |
| 4586 |
|
$query = (is_numeric($tvidnames[0]) ? "tv.id" : "tv.name") . " IN ('" . implode("','", $tvidnames) . "')"; |
| 4587 |
|
} |
| 4588 |
|
|
| 4589 |
|
$this->getUserDocGroups(); |
| 4590 |
|
|
|
@@ 4751-4755 (lines=5) @@
|
| 4748 |
|
$fields = ($fields == '') ? 'tv.*' : 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $fields)))); |
| 4749 |
|
$sort = ($sort == '') ? '' : 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $sort)))); |
| 4750 |
|
|
| 4751 |
|
if ($idnames == '*') { |
| 4752 |
|
$query = 'tv.id<>0'; |
| 4753 |
|
} else { |
| 4754 |
|
$query = (is_numeric($idnames[0]) ? 'tv.id' : 'tv.name') . " IN ('" . implode("','", $idnames) . "')"; |
| 4755 |
|
} |
| 4756 |
|
|
| 4757 |
|
$rs = $this->db->select("{$fields}, IF(tvc.value != '', tvc.value, tv.default_text) as value", $this->getFullTableName('site_tmplvars') . " tv |
| 4758 |
|
INNER JOIN " . $this->getFullTableName('site_tmplvar_templates') . " tvtpl ON tvtpl.tmplvarid = tv.id |