Skip to content

Commit

Permalink
#3869 Indefined index: x-centreon-token
Browse files Browse the repository at this point in the history
  • Loading branch information
Toufik MECHOUET committed Nov 9, 2015
1 parent ed2c2ed commit ccc36be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/lib/HTML/QuickForm.php
Expand Up @@ -2034,7 +2034,7 @@ function createSecurityToken()
{

$token = md5(uniqid());
if (false === isset($_SESSION['x-centreon-token']) && false === is_array($_SESSION['x-centreon-token'])) {
if (false === isset($_SESSION['x-centreon-token']) && (isset($_SESSION['x-centreon-token']) && false === is_array($_SESSION['x-centreon-token']))) {
$_SESSION['x-centreon-token'] = array();
$_SESSION['x-centreon-token-generated-at'] = array();
}
Expand Down

0 comments on commit ccc36be

Please sign in to comment.