Skip to content

Commit

Permalink
Fix looping through attachment ids.
Browse files Browse the repository at this point in the history
The 'id' hash will be built further down.
  • Loading branch information
yunosh committed Mar 26, 2014
1 parent 6a6f2a6 commit a939418
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -458,7 +458,7 @@ public function store(array $objects,
foreach ($delete as $obid => $object_id) {
$object = $this->_data[self::OBJECTS][$object_id];
if (isset($object['_attachments'])) {
foreach ($object['_attachments']['id'] as $id) {
foreach (array_keys($object['_attachments']) as $id) {
$this->_cache->deleteAttachment(
$this->getDataId(), $obid, $id
);
Expand Down

0 comments on commit a939418

Please sign in to comment.