Skip to content

Commit

Permalink
fix(wizard): impersonation exists in GLPI 9.5 only
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 9, 2020
1 parent 15a3aed commit eb6f43e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/wizard.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public static function header($title) {
}
echo '<div class="plugin_formcreator_container '.$toggle_menu.'">';

Html::displayImpersonateBanner();
if (method_exists(Html::class, 'displayImpersonateBanner')) {
Html::displayImpersonateBanner();
}

// menu toggle (responsive mode)
echo "<input type='checkbox' id='formcreator-toggle-nav-responsive'>";
Expand Down

0 comments on commit eb6f43e

Please sign in to comment.