Skip to content
Snippets Groups Projects
Commit 629f28d2 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

fix error with sqlite

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@13670 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent 5f43710b
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ class tgSqliteDB {
function __construct ( &$conf ) {
$this->conf =& $conf;
$this->db = new SQLite3($conf['sqlite']['path'])
or die('SQLite DB not found');;
or die('SQLite DB not found');
}
function query ($db_query){
......@@ -23,6 +23,8 @@ class tgSqliteDB {
*/
function getUserRequests($filter="open", $order = "timestamp DESC") {
$where = '';
switch($filter) {
case "open":
$where .= "WHERE at_status=0";
......@@ -61,9 +63,9 @@ class tgSqliteDB {
$data[$key] = $this->db->escapeString($val);
}
$query = "INSERT INTO user_request (name, surname, pref_uid, email, institution, newsletter, lang)
$query = "INSERT INTO user_request (name, surname, pref_uid, email, institution, newsletter, lang, ldap_uid, at_status, at_assignee)
VALUES ('".$data[name]."','".$data[surname]."','".$data[userid]."','"
.$data[email]."','".$data[institution]."','".$data[newsletter]."', '".$data[lang]."' )";
.$data[email]."','".$data[institution]."','".$data[newsletter]."', '".$data[lang]."', '', '0', '')";
$this->query($query);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment