Skip to content

Conversation

@Rom1-B
Copy link
Contributor

@Rom1-B Rom1-B commented Mar 26, 2025

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes N/A

Prevent warning message on plugins page:

glpiphplog.WARNING:   *** PHP Warning (2): The use statement with non-compound name 'GLPIKey' has no effect in .../plugins/centreon/hook.php at line 32
  Backtrace :
  src/Plugin.php:2020                                include_once()
  src/Plugin.php:377                                 Plugin::includeHook()
  src/Plugin.php:2641                                Plugin::load()
  src/Search.php:7872                                Plugin::getSpecificValueToDisplay()
  src/Search.php:1734                                Search::giveItem()
  src/Search.php:451                                 Search::constructData()
  src/Search.php:202                                 Search::getDatas()
  src/Search.php:179                                 Search::showList()
  front/plugin.php:56                                Search::show()
  public/index.php:82                                require()

Screenshots (if appropriate):

image

@Rom1-B Rom1-B requested a review from Mary-Clb March 26, 2025 14:56
@Mary-Clb Mary-Clb merged commit ae698c6 into pluginsGLPI:main Mar 27, 2025
3 checks passed
@Rom1-B Rom1-B deleted the fix_GLPIKey branch March 27, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants