From 99ccf29a7ec936461e508020fca7cedac3f16137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20D=C3=A9chelle?= Date: Tue, 27 Sep 2022 10:34:48 +0200 Subject: [PATCH] Add static to $rightname var to fix PHP error when loading plugin --- src/RuleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RuleTest.php b/src/RuleTest.php index 3e4dce5..25a018b 100644 --- a/src/RuleTest.php +++ b/src/RuleTest.php @@ -51,7 +51,7 @@ if (!defined('GLPI_ROOT')) { class RuleTest extends Rule { // From Rule - public $rightname = 'rule_import'; + public static $rightname = 'rule_import'; public $can_sort = true;