]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3496. Using OR to concatenate unpaired type and subtype clauses in elgg_get_ri...
authorBrett Profitt <brett.profitt@gmail.com>
Sun, 21 Aug 2011 17:29:20 +0000 (10:29 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Sun, 21 Aug 2011 17:29:20 +0000 (10:29 -0700)
engine/lib/river.php

index 143ff035f070988c799197c11ffdc36f8044d247..64ddcfdc1e999bbc584259ec7304f81d63a2790b 100644 (file)
@@ -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