diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php index b952fb03936..060ceb00058 100644 --- a/htdocs/societe/notify/fiche.php +++ b/htdocs/societe/notify/fiche.php @@ -33,11 +33,11 @@ $db = new Db(); if ($HTTP_POST_VARS["action"] == 'add') { - $sql = "DELETE FROM llx_notify"; + $sql = "DELETE FROM llx_notify_def"; $sql .= " WHERE fk_soc=".$socid." AND fk_contact=".$HTTP_POST_VARS["contactid"]." AND fk_action=".$HTTP_POST_VARS["actionid"]; if ($db->query($sql)) { - $sql = "INSERT INTO llx_notify (datec,fk_soc, fk_contact, fk_action)"; + $sql = "INSERT INTO llx_notify_def (datec,fk_soc, fk_contact, fk_action)"; $sql .= " VALUES (now(),$socid,".$HTTP_POST_VARS["contactid"].",".$HTTP_POST_VARS["actionid"].")"; if ($db->query($sql)) @@ -111,7 +111,7 @@ if ( $soc->fetch($socid) ) print '