From 41b6e3a4b0d7e1a382ea7162d81ecb0c7744af81 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 27 Jun 2024 09:51:38 +1000 Subject: [PATCH] Fix for when Address::createFTN refuses to create an address --- app/Classes/Protocol.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Protocol.php b/app/Classes/Protocol.php index 65ae2f2..4b3ce78 100644 --- a/app/Classes/Protocol.php +++ b/app/Classes/Protocol.php @@ -431,8 +431,7 @@ abstract class Protocol if ($so && $so->exists) { foreach ($this->node->aka_other as $aka) - if (! Address::findFTN($aka)) { - $oo = Address::createFTN($aka,$so); + if ((! Address::findFTN($aka)) && ($oo=Address::createFTN($aka,$so))) { $oo->validated = TRUE; $oo->save(); }