|
@@ 4832-4836 (lines=5) @@
|
| 4829 |
|
if ($tvsort != '') { |
| 4830 |
|
$tvsort = 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $tvsort)))); |
| 4831 |
|
} |
| 4832 |
|
if ($tvidnames == "*") { |
| 4833 |
|
$query = "tv.id<>0"; |
| 4834 |
|
} else { |
| 4835 |
|
$query = (is_numeric($tvidnames[0]) ? "tv.id" : "tv.name") . " IN ('" . implode("','", $tvidnames) . "')"; |
| 4836 |
|
} |
| 4837 |
|
|
| 4838 |
|
$this->getUserDocGroups(); |
| 4839 |
|
|
|
@@ 5000-5004 (lines=5) @@
|
| 4997 |
|
$fields = ($fields == '') ? 'tv.*' : 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $fields)))); |
| 4998 |
|
$sort = ($sort == '') ? '' : 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $sort)))); |
| 4999 |
|
|
| 5000 |
|
if ($idnames == '*') { |
| 5001 |
|
$query = 'tv.id<>0'; |
| 5002 |
|
} else { |
| 5003 |
|
$query = (is_numeric($idnames[0]) ? 'tv.id' : 'tv.name') . " IN ('" . implode("','", $idnames) . "')"; |
| 5004 |
|
} |
| 5005 |
|
|
| 5006 |
|
$rs = $this->getDatabase()->select("{$fields}, IF(tvc.value != '', tvc.value, tv.default_text) as value", $this->getFullTableName('site_tmplvars') . " tv |
| 5007 |
|
INNER JOIN " . $this->getFullTableName('site_tmplvar_templates') . " tvtpl ON tvtpl.tmplvarid = tv.id |