Fix non static functions

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@199 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
tsmr 2012-09-11 12:06:40 +00:00
parent 38603b3d54
commit 25786db89a

View File

@ -42,7 +42,7 @@ class PluginExampleExample extends CommonDBTM {
} }
function canCreate() { static function canCreate() {
if (isset($_SESSION["glpi_plugin_example_profile"])) { if (isset($_SESSION["glpi_plugin_example_profile"])) {
return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w'); 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"])) { if (isset($_SESSION["glpi_plugin_example_profile"])) {
return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w' return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w'