Fix for when Address::createFTN refuses to create an address
This commit is contained in:
parent
f006d829f4
commit
df07d9978e
@ -431,8 +431,8 @@ abstract class Protocol
|
|||||||
|
|
||||||
if ($so && $so->exists) {
|
if ($so && $so->exists) {
|
||||||
foreach ($this->node->aka_other as $aka)
|
foreach ($this->node->aka_other as $aka)
|
||||||
if (! Address::findFTN($aka)) {
|
// @todo For disabled zones, we shouldnt refuse to record the address
|
||||||
$oo = Address::createFTN($aka,$so);
|
if ((! Address::findFTN($aka)) && ($oo=Address::createFTN($aka,$so))) {
|
||||||
$oo->validated = TRUE;
|
$oo->validated = TRUE;
|
||||||
$oo->save();
|
$oo->save();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user