Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Avoid PHP notice Undefined index: centreon in notifications.php #6266

Merged
merged 1 commit into from
Jul 6, 2018
Merged

Avoid PHP notice Undefined index: centreon in notifications.php #6266

merged 1 commit into from
Jul 6, 2018

Conversation

smutel
Copy link
Contributor

@smutel smutel commented May 3, 2018

Hello,

In httpd error_log, the message below is written multiple times:
[Thu May 03 13:23:42 2018] [error] [client 10.90.17.242] PHP Notice: Undefined index: centreon in /usr/share/centreon/www/include/monitoring/status/Notifications/notifications.php on line 50, referer: https://centreon.xit.rxcorp.com/centreon/main.php

This pull request is to test if the session $_SESSION['centreon'] is defined (as done in other files /usr/share/centreon/www/include/monitoring/status/TopCounter/xml/statusCounter.php).

Regards,

…/include/monitoring/status/Notifications/notifications.php
@thiuyendang
Copy link
Contributor

Hello Samuel ! Thank you for all your PRs !
I need more information to validate your commit.
In which Centreon version do you see the error message and in which context (how to reproduce the issue) ?
Thank you !

@thiuyendang
Copy link
Contributor

Vu avec Smutel : 2.8.22.
Vu avec KDU : notifications.php -> popup de notifications ? (activer dans le profil utilisateur)
Problème non reproduit à ce jour.

@adr-mo
Copy link
Contributor

adr-mo commented Jun 28, 2018

Since it has not been reproduced there is nothing really to do.
Although PR makes sense and will be merged for the 2.8.25 centreon release

@kduret kduret merged commit 8844b26 into centreon:2.8.x Jul 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants