From: Brett Profitt Date: Sun, 21 Aug 2011 17:29:20 +0000 (-0700) Subject: Fixes #3496. Using OR to concatenate unpaired type and subtype clauses in elgg_get_ri... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f280887c7df563dd3af8ad1ccc8f442c2d101264;p=lorea%2Felgg.git Fixes #3496. Using OR to concatenate unpaired type and subtype clauses in elgg_get_river_type_subtype_where_sql(). --- diff --git a/engine/lib/river.php b/engine/lib/river.php index 143ff035f..64ddcfdc1 100644 --- a/engine/lib/river.php +++ b/engine/lib/river.php @@ -472,7 +472,7 @@ function elgg_get_river_type_subtype_where_sql($table, $types, $subtypes, $pairs } if (is_array($wheres) && count($wheres)) { - $wheres = array(implode(' AND ', $wheres)); + $wheres = array(implode(' OR ', $wheres)); } } else { // using type/subtype pairs