diff --git a/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php b/info.textgrid.middleware.tgauth.tgaccount/include/tgSqliteDB.class.php index 9e25ca1774d6dd8d0603611664c5abfb5f04c258..6fd95a40cade6e447eb0f94fe57c269505a03d9a 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); }