mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Removed reference to secondary database link $ldb
This means that both the limesurvey and the quexs tables must be in the same database, with the same connection But has the advantage of being able to join records across tables easily
This commit is contained in:
@@ -243,7 +243,6 @@ function get_case_id($operator_id, $create = false)
|
||||
{
|
||||
|
||||
global $db;
|
||||
global $ldb;
|
||||
|
||||
$db->StartTrans();
|
||||
|
||||
@@ -441,11 +440,7 @@ function get_case_id($operator_id, $create = false)
|
||||
$sql = "INSERT INTO ".LIME_PREFIX."tokens_$lime_sid (tid,firstname,lastname,email,token,language,sent,completed,attribute_1,attribute_2,mpid)
|
||||
VALUES (NULL,'','','',$case_id,'en','N','N','','',NULL)";
|
||||
|
||||
if (!$ldb->Execute($sql)) //if we cannot insert
|
||||
{
|
||||
$db->FailTrans();
|
||||
$case_id = false;
|
||||
}
|
||||
$db->Execute($sql);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user