Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix php 7.4 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Apr 13, 2024
1 parent 2254164 commit 9eb17f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PluginJamfConfig extends CommonDBTM

public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if (!$withtemplate && $item::class === Config::class) {
if (!$withtemplate && $item::getType() === Config::class) {
return _x('plugin_info', 'Jamf plugin', 'jamf');
}
return '';
Expand All @@ -55,7 +55,7 @@ public function showForm($ID = -1, array $options = [])

public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item::class === Config::class) {
if ($item::getType() === Config::class) {
return (new self())->showForm();
}
return false;
Expand Down

0 comments on commit 9eb17f0

Please sign in to comment.