engine/classes/Elgg/Database/EntityTable.php 1 location
|
@@ 404-410 (lines=7) @@
|
401 |
|
// remove identical join clauses |
402 |
|
$joins = array_unique($options['joins']); |
403 |
|
|
404 |
|
foreach ($joins as $i => $join) { |
405 |
|
if ($join === false) { |
406 |
|
return false; |
407 |
|
} elseif (empty($join)) { |
408 |
|
unset($joins[$i]); |
409 |
|
} |
410 |
|
} |
411 |
|
|
412 |
|
// evalutate selects |
413 |
|
if ($options['selects']) { |
engine/lib/metastrings.php 1 location
|
@@ 282-288 (lines=7) @@
|
279 |
|
$query = "SELECT {$options['metastring_calculation']}(v.string) as calculation FROM {$db_prefix}$type n_table"; |
280 |
|
} |
281 |
|
|
282 |
|
foreach ($joins as $i => $join) { |
283 |
|
if ($join === false) { |
284 |
|
return false; |
285 |
|
} elseif (empty($join)) { |
286 |
|
unset($joins[$i]); |
287 |
|
} |
288 |
|
} |
289 |
|
|
290 |
|
// remove identical join clauses |
291 |
|
$joins = array_unique($joins); |
engine/lib/tags.php 1 location
|
@@ 169-175 (lines=7) @@
|
166 |
|
// remove identical join clauses |
167 |
|
$joins = array_unique($joins); |
168 |
|
|
169 |
|
foreach ($joins as $i => $join) { |
170 |
|
if ($join === false) { |
171 |
|
return false; |
172 |
|
} elseif (empty($join)) { |
173 |
|
unset($joins[$i]); |
174 |
|
} |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
|
$query = "SELECT msv.string as tag, count(msv.id) as total "; |
mod/elgg_solr/lib/functions.php 2 locations
|
@@ 1321-1327 (lines=7) @@
|
1318 |
|
// remove identical join clauses |
1319 |
|
$joins = array_unique($options['joins']); |
1320 |
|
|
1321 |
|
foreach ($joins as $i => $join) { |
1322 |
|
if ($join === FALSE) { |
1323 |
|
return FALSE; |
1324 |
|
} elseif (empty($join)) { |
1325 |
|
unset($joins[$i]); |
1326 |
|
} |
1327 |
|
} |
1328 |
|
|
1329 |
|
// evalutate selects |
1330 |
|
if ($options['selects']) { |
|
@@ 1473-1479 (lines=7) @@
|
1470 |
|
// remove identical join clauses |
1471 |
|
$joins = array_unique($options['joins']); |
1472 |
|
|
1473 |
|
foreach ($joins as $i => $join) { |
1474 |
|
if ($join === false) { |
1475 |
|
return false; |
1476 |
|
} elseif (empty($join)) { |
1477 |
|
unset($joins[$i]); |
1478 |
|
} |
1479 |
|
} |
1480 |
|
|
1481 |
|
// evalutate selects |
1482 |
|
if ($options['selects']) { |