From 25786db89a163a435604b336fe5bc5078197a061 Mon Sep 17 00:00:00 2001 From: tsmr Date: Tue, 11 Sep 2012 12:06:40 +0000 Subject: [PATCH] Fix non static functions git-svn-id: https://forge.glpi-project.org/svn/example/trunk@199 349b9182-4a13-0410-896f-e5e9767dd1b3 --- inc/example.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/example.class.php b/inc/example.class.php index ea82963..882706d 100644 --- a/inc/example.class.php +++ b/inc/example.class.php @@ -42,7 +42,7 @@ class PluginExampleExample extends CommonDBTM { } - function canCreate() { + static function canCreate() { if (isset($_SESSION["glpi_plugin_example_profile"])) { return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w'); @@ -51,7 +51,7 @@ class PluginExampleExample extends CommonDBTM { } - function canView() { + static function canView() { if (isset($_SESSION["glpi_plugin_example_profile"])) { return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w'