diff --git a/www/class/centreonSession.class.php b/www/class/centreonSession.class.php index 9a4c5042906..d1db8f833c0 100644 --- a/www/class/centreonSession.class.php +++ b/www/class/centreonSession.class.php @@ -93,7 +93,7 @@ function checkSession($session_id, $pearDB) { public static function getUser($sessionId, $pearDB) { - $DBRESULT = $pearDB->query("SELECT user_id FROM session WHERE `session_id` LIKE '".htmlentities(trim($session_id), ENT_QUOTES, "UTF-8")."'"); + $DBRESULT = $pearDB->query("SELECT user_id FROM session WHERE `session_id` LIKE '".htmlentities(trim($sessionId), ENT_QUOTES, "UTF-8")."'"); $row = $DBRESULT->fetchRow(); if (!$row) { return 0;