aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/river2.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/river2.php b/engine/lib/river2.php
index 577cefc16..3471e3fef 100644
--- a/engine/lib/river2.php
+++ b/engine/lib/river2.php
@@ -131,6 +131,9 @@
$posted_max = 0
) {
+ // Get config
+ global $CONFIG;
+
// Sanitise variables
if (!is_array($subject_guid)) {
$subject_guid = (int) $subject_guid;
@@ -156,7 +159,7 @@
// Construct 'where' clauses for the river
$where = array();
- $where[] = get_access_sql_suffix();
+ $where[] = str_replace("and enabled='yes'",'',str_replace('owner_guid','subject_guid',get_access_sql_suffix()));
if (empty($subject_relationship)) {
if (!empty($subject_guid))