From 629f28d2223ac8879a6db55a84f9de879aa2af8f Mon Sep 17 00:00:00 2001 From: Ubbo Veentjer <veentjer@sub.uni-goettingen.de> Date: Mon, 3 Dec 2012 09:08:02 +0000 Subject: [PATCH] fix error with sqlite git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@13670 7c539038-3410-0410-b1ec-0f2a7bf1c452 --- .../include/tgSqliteDB.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php b/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php index 9e25ca1..6fd95a4 100644 --- a/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php +++ b/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php @@ -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); } -- GitLab