Fixed issue #79
This commit is contained in:
parent
1eb68bf135
commit
25c61ad798
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user