aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-28 20:10:06 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-28 20:10:06 +0000
commit886a2cc826b5f75cdc1c59067baf8696ee40f780 (patch)
tree5f3098a1e5fd0428d01f2fd0d304e8df996a75ab
parent5fab0d32e68c3a4960bcdb955a8f05bb8df4564d (diff)
downloadelgg-886a2cc826b5f75cdc1c59067baf8696ee40f780.tar.gz
elgg-886a2cc826b5f75cdc1c59067baf8696ee40f780.tar.bz2
Access levels on add_to_river() will now respect ACCESS_DEFAULT level.
git-svn-id: https://code.elgg.org/elgg/trunk@3357 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/river2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/river2.php b/engine/lib/river2.php
index ecf0cbcb8..945eb1d68 100644
--- a/engine/lib/river2.php
+++ b/engine/lib/river2.php
@@ -28,7 +28,7 @@
$action_type,
$subject_guid,
$object_guid,
- $access_id = -1,
+ $access_id = "",
$posted = 0
) {
@@ -38,7 +38,7 @@
if (!($object = get_entity($object_guid))) return false;
if (empty($action_type)) return false;
if ($posted == 0) $posted = time();
- if ($access_id == -1) $access_id = $object->access_id;
+ if ($access_id === "") $access_id = $object->access_id;
$type = $object->getType();
$subtype = $object->getSubtype();