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

Avoid notice if getting operator id when not one

This commit is contained in:
Adam Zammit
2013-02-27 14:30:53 +11:00
parent 4896c60f04
commit 62c5937765

View File

@@ -514,6 +514,8 @@ function get_respondent_variable($variable,$respondent_id)
*/
function get_operator_id()
{
if (!isset($_SERVER['PHP_AUTH_USER'])) return false;
$db = newADOConnection(DB_TYPE);
$db->Connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
$db->SetFetchMode(ADODB_FETCH_ASSOC);