aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-07-06 07:50:35 -0400
committerCash Costello <cash.costello@gmail.com>2011-07-06 07:50:35 -0400
commit105abf94e68860d1d1d06ef6865d21c65f8a4dde (patch)
treea3e48bf4c112a9781a6ad7cd95ee4cd542a84abd
parent96c5c8a1117d39be371473aa3a21ece76a377881 (diff)
downloadelgg-105abf94e68860d1d1d06ef6865d21c65f8a4dde.tar.gz
elgg-105abf94e68860d1d1d06ef6865d21c65f8a4dde.tar.bz2
$joins was not declared in elgg_get_river()
-rw-r--r--engine/lib/river.php3
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 ";