Fix: Lors de la creation d'une action, si lien webcal non demand, on n'appelle pas l'interface.
This commit is contained in:
parent
c8700fd426
commit
0852cbeaa3
@ -114,11 +114,13 @@ class ActionComm
|
||||
}
|
||||
|
||||
// Ajoute entrée dans webcal
|
||||
$result=$webcal->add($author,$webcal->date,$webcal->texte,$webcal->desc);
|
||||
if ($result < 0) {
|
||||
$this->error="Echec insertion dans webcal: ".$webcal->error;
|
||||
if (is_object($webcal))
|
||||
{
|
||||
$result=$webcal->add($author,$webcal->date,$webcal->texte,$webcal->desc);
|
||||
if ($result < 0) {
|
||||
$this->error="Echec insertion dans webcal: ".$webcal->error;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $this->id;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user