2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Replace link with queXS to be "user" not loginID

This commit is contained in:
Adam Zammit
2015-08-18 16:31:14 +10:00
parent 13155fa7db
commit 6be4a2d1c9
3 changed files with 5 additions and 5 deletions

View File

@@ -900,7 +900,7 @@ function get_extension($operator_id)
*/
function get_operator_id()
{
if (!isset($_SESSION['loginID']))
if (!isset($_SESSION['user']))
{
print "<p>" . T_("ERROR: You are not logged in.") . "</p>";
die();
@@ -910,7 +910,7 @@ function get_operator_id()
$sql = "SELECT operator_id
FROM operator
WHERE username = " . $db->qstr($_SESSION['loginID']) . "
WHERE username = " . $db->qstr($_SESSION['user']) . "
AND enabled = 1";
$o = $db->GetRow($sql);