From a3493d0132c1c15015550894bfe2f580b7af3a93 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 2 Dec 2021 11:33:51 +0100 Subject: [PATCH] Clean code --- htdocs/core/class/notify.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php index 32ff4444a72..a741af3d867 100644 --- a/htdocs/core/class/notify.class.php +++ b/htdocs/core/class/notify.class.php @@ -91,7 +91,6 @@ class Notify public function __construct($db) { $this->db = $db; - $this->arrayofnotifsupported = self::$arrayofnotifsupported; } @@ -346,7 +345,7 @@ class Notify global $dolibarr_main_url_root; global $action; - if (!in_array($notifcode, $this->arrayofnotifsupported)) { + if (!in_array($notifcode, Notify::$arrayofnotifsupported)) { return 0; }