diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index bab1aef5d3..6464120a94 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -49,7 +49,8 @@ function read_repository() { $this->db->lock("phpgw_preferences"); - $this->db->query("SELECT preference_value FROM phpgw_preferences WHERE preference_owner='".$this->account_id."'",__LINE__,__FILE__); + //$this->db->query("SELECT preference_value FROM phpgw_preferences WHERE preference_owner='".$this->account_id."'",__LINE__,__FILE__); + $this->db->query("SELECT preference_value FROM phpgw_preferences WHERE preference_owner='4'",__LINE__,__FILE__); $this->db->next_record(); $pref_info = $this->db->f("preference_value"); $this->data = Array(); diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 0231baa99b..5a0f2a3a70 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -372,7 +372,7 @@ # $data = addslashes($phpgw->crypto->encrypt(serialize($data))); $data = addslashes(serialize($data)); $phpgw->db->query("INSERT INTO phpgw_app_sessions (sessionid,loginid,app,location,content) " - . "VALUES ('".$this->sessionid."',".$this->account_id."','".$appname + . "VALUES ('".$this->sessionid."','".$this->account_id."','".$appname . "','".$location."','".$data."')",__LINE__,__FILE__); } else { # some how the next line is not working correctly! knecke