Skip to content
Permalink
Browse files

guid is added in parent::save call already, no need to add it twice

  • Loading branch information...
flack committed Mar 10, 2019
1 parent 693f5e1 commit 7e4c4201898221221100cdd74d1736bceadf9778
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/midcom/datamanager/storage/images.php
@@ -24,7 +24,7 @@ public function recreate()
$images = $filter->process($images['main'], $images);
foreach ($images as $name => $image) {
$this->map[$identifier . $name . ':' . $image->guid] = $image;
$this->map[$identifier . $name] = $image;
}
}
return $this->save_image_map($map) && $this->save_attachment_list();
@@ -78,7 +78,7 @@ public function save()
}
if (!empty($map[$identifier])) {
foreach ($map[$identifier] as $name => $image) {
$this->map[$identifier . $name . ':' . $image->guid] = $image;
$this->map[$identifier . $name] = $image;
}
}

0 comments on commit 7e4c420

Please sign in to comment.
You can’t perform that action at this time.