| 102 |
102 |
$clause .= ' AND ' . $textField . ' != "" AND ' . $textField . ' != "0"';
|
| 103 |
103 |
$clause .= t3lib_BEfunc::BEenableFields($table);
|
| 104 |
104 |
|
| 105 |
|
$resource = $TYPO3_DB->exec_SELECTquery('distinct(' . $uidField . ') , ' . $textField, $table, $clause);
|
|
105 |
$resource = $TYPO3_DB->exec_SELECTquery('distinct ' . $uidField . ', ' . $textField, $table, $clause);
|
| 106 |
106 |
$records = array();
|
| 107 |
107 |
while ($row = $TYPO3_DB->sql_fetch_row($resource)) {
|
| 108 |
108 |
$records[] = array($row[0], $row[1]);
|
| ... | ... | |
| 615 |
615 |
$clause = 'deleted = 0 ';
|
| 616 |
616 |
$clause .= t3lib_BEfunc::BEenableFields($table);
|
| 617 |
617 |
$clause .= ' AND (' . $field . ' != "" OR ' . $field . ' != 0)';
|
| 618 |
|
$records = $TYPO3_DB->exec_SELECTgetRows('distinct(' . $field . ')', $table, $clause);
|
|
618 |
$records = $TYPO3_DB->exec_SELECTgetRows('distinct ' . $field, $table, $clause);
|
| 619 |
619 |
|
| 620 |
620 |
// TRUE would means the uid of the option will be the same as the value
|
| 621 |
621 |
if (!strpos($field, ',')) {
|
| ... | ... | |
| 644 |
644 |
if (is_string($table) && is_string($field) && (int)$uid > 0) {
|
| 645 |
645 |
$clause = "deleted = 0 AND uid = $uid ";
|
| 646 |
646 |
$clause .= t3lib_BEfunc::BEenableFields($table);
|
| 647 |
|
$records = $TYPO3_DB->exec_SELECTgetRows('distinct(' . $field . ')', $table, $clause);
|
|
647 |
$records = $TYPO3_DB->exec_SELECTgetRows('distinct ' . $field, $table, $clause);
|
| 648 |
648 |
if (isset($records[0])) {
|
| 649 |
649 |
$result = $records[0][$field];
|
| 650 |
650 |
}
|