fixing bug [ 992090 ] Could not log out

At that time, there is no account-id set which results in an empty string, what pgSql dont likes in integer fields. Casting it to int now.
This commit is contained in:
Ralf Becker 2004-07-21 10:12:58 +00:00
parent 4e6fa932cb
commit de506124a3

View File

@ -108,7 +108,7 @@
// $db->lock('phpgw_log');
$db->query("insert into phpgw_log (log_date, log_user, log_app, log_severity) values "
."('". $GLOBALS['phpgw']->db->to_timestamp(time())
."','".$GLOBALS['phpgw']->session->account_id
."','".(int)$GLOBALS['phpgw']->session->account_id
."','".$GLOBALS['phpgw_info']['flags']['currentapp']."'"
.",'".$this->severity()."'"
.")"