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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bsauveton committed Oct 26, 2015
1 parent 2ba72fd commit b8bba36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/class/centreonSession.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b8bba36

Please sign in to comment.