[-] Core : Swift exception(s) handled #PSCFI-6121
This commit is contained in:
+1
-3
@@ -254,9 +254,7 @@ class MailCore
|
|||||||
$swift->disconnect();
|
$swift->disconnect();
|
||||||
return $send;
|
return $send;
|
||||||
}
|
}
|
||||||
|
catch (Swift_Exception $e) {
|
||||||
catch (Swift_ConnectionException $e)
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -620,7 +620,8 @@ class Swift_Message extends Swift_Message_Mime
|
|||||||
case "mixed": $this->getReference("mixed", $tag)->addChild($ref, $id, $sign);
|
case "mixed": $this->getReference("mixed", $tag)->addChild($ref, $id, $sign);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getReference("parent", $old_branch)->removeChild($id);
|
if ($this->getReference("parent", $old_branch)->hasChild($id))
|
||||||
|
$this->getReference("parent", $old_branch)->removeChild($id);
|
||||||
}
|
}
|
||||||
$this->setReference("parent", $old_branch, $new); //parentRefs[$old_branch] = $new;
|
$this->setReference("parent", $old_branch, $new); //parentRefs[$old_branch] = $new;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user