diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/river.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php index 1a2be1e50..143ff035f 100644 --- a/engine/lib/river.php +++ b/engine/lib/river.php @@ -185,6 +185,9 @@ function elgg_delete_river(array $options = array()) { $query = "DELETE rv.* FROM {$CONFIG->dbprefix}river rv "; + // remove identical join clauses + $joins = array_unique($options['joins']); + // add joins foreach ($joins as $j) { $query .= " $j "; |