]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Copied explaination for weird str_replace() in get_river_items() to the same call...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 19:39:33 +0000 (19:39 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 19:39:33 +0000 (19:39 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6187 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/river.php

index 6e1f4414f356137622cdf6319e298511a02bad03..212eccaefa90a7b4bdcc34266741958df902151a 100644 (file)
@@ -323,6 +323,7 @@ function elgg_get_river_items($subject_guid = 0, $object_guid = 0, $subject_rela
 
        // Construct 'where' clauses for the river
        $where = array();
+       // river table does not have columns expected by get_access_sql_suffix so we modify its output
        $where[] = str_replace("and enabled='yes'",'',str_replace('owner_guid','subject_guid',get_access_sql_suffix_new('er','e')));
 
        if (empty($subject_relationship)) {