diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 16:21:41 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 16:21:41 +0000 |
commit | 23ae0802d52ed0fb1b4d04beb471b77c6f3fe820 (patch) | |
tree | 4dda6070e7757d6a9b1c719d866a567fb132f843 | |
parent | 6978d6e9e857afccc53fc0a56da5ec27061037c7 (diff) | |
download | elgg-23ae0802d52ed0fb1b4d04beb471b77c6f3fe820.tar.gz elgg-23ae0802d52ed0fb1b4d04beb471b77c6f3fe820.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Access id better handled
git-svn-id: https://code.elgg.org/elgg/trunk@372 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/entities.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index b7ffbc3da..5660e2e34 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -133,12 +133,12 @@ if (is_array($value)) { foreach ($value as $v) - if (!create_metadata($this->getGUID(), $name, $v, $value_type, $this->getOwner(), true)) return false; + if (!create_metadata($this->getGUID(), $name, $v, $value_type, $this->getOwner(), $this->getAccessID(), true)) return false; return true; } else - return create_metadata($this->getGUID(), $name, $value, $value_type, $this->getOwner()); + return create_metadata($this->getGUID(), $name, $value, $value_type, $this->getOwner(), $this->getAccessID()); } /** @@ -236,6 +236,7 @@ return get_annotations_max($this->getGUID(), "","",$name); } + public function getAccessID() { return $this->get('access_id'); } public function getGUID() { return $this->get('guid'); } public function getOwner() { return $this->get('owner_guid'); } public function getType() { return $this->get('type'); } |