From 0852cbeaa3c235444f5ed1129f292769bd52877e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Jul 2005 19:54:36 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Lors=20de=20la=20creation=20d'une=20acti?= =?UTF-8?q?on,=20si=20lien=20webcal=20non=20demand=E9,=20on=20n'appelle=20?= =?UTF-8?q?pas=20l'interface.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/actioncomm.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/actioncomm.class.php b/htdocs/actioncomm.class.php index b546470fc22..7a68a780000 100644 --- a/htdocs/actioncomm.class.php +++ b/htdocs/actioncomm.class.php @@ -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;