Fixed issue #79

This commit is contained in:
Rooty 2021-04-29 05:43:06 +02:00
parent 1eb68bf135
commit 25c61ad798

View File

@ -373,12 +373,20 @@ class NodeSettingsManager extends Manager
{
if ((strtolower(get_class($obj))==strtolower("NodeSettings")))
{
if ($obj->isLoaded()==false)
if ($obj->isLoaded()==true)
{
/* Récupération des infos */
$id=$this->sourceInsert($obj->getId(), $obj->getEmail(), $obj->getGit(), $obj->getMastodon(), $obj->getMobilizon(), $obj->getMatrix(), $obj->getPeertube(), $obj->getNextcloud(), $obj->getTwitter(), $obj->getFacebook());
// $obj->setId($id);
$this->CallSystemPlugin("__insertNodeSettings", $obj);
return $obj;
} else {
/* Erreur */
$systemError=3;
$classe="NodeSettingsManager";
$message="Erreur ! Aucun ID d'objet ! ";
addError($systemError, $classe, $message, __line__, __file__);
return $obj;
}
}