Do not attempt to create revisions for not existing target passwords

Signed-off-by: Marius David Wieschollek's avatarMarius David Wieschollek <passwords.public@mdns.eu>
parent b1c3c9f1
Pipeline #3178 passed with stages
in 5 minutes and 20 seconds
......@@ -323,6 +323,7 @@ class SynchronizeShares extends AbstractCronJob {
$total += $count;
foreach($shares as $share) {
if($share->getTargetPassword() === null) continue;
/** @var PasswordRevision $revision */
$revision = $this->createNewPasswordRevision($share->getSourcePassword(), $share->getTargetPassword());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment