Fix for when Address::createFTN refuses to create an address
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 41s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m46s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-06-27 09:51:38 +10:00
parent f006d829f4
commit df07d9978e

View File

@ -431,8 +431,8 @@ abstract class Protocol
if ($so && $so->exists) {
foreach ($this->node->aka_other as $aka)
if (! Address::findFTN($aka)) {
$oo = Address::createFTN($aka,$so);
// @todo For disabled zones, we shouldnt refuse to record the address
if ((! Address::findFTN($aka)) && ($oo=Address::createFTN($aka,$so))) {
$oo->validated = TRUE;
$oo->save();
}