diff --git a/htdocs/notify.class.php b/htdocs/notify.class.php index b5b7d47c996..86571347ad6 100644 --- a/htdocs/notify.class.php +++ b/htdocs/notify.class.php @@ -106,7 +106,7 @@ class Notify $sql = "INSERT INTO ".MAIN_DB_PREFIX."notify (daten, fk_action, fk_contact, objet_type, objet_id)"; $sql .= " VALUES (now(), $action ,$obj->idp , '$objet_type', $objet_id);"; - if (! $db->query($sql) ) + if (! $this->db->query($sql) ) { dolibarr_print_error($db); }