mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
formatting
This commit is contained in:
parent
31b533d00e
commit
c51972cd16
@ -106,13 +106,14 @@
|
|||||||
{
|
{
|
||||||
$db = $GLOBALS['phpgw']->db;
|
$db = $GLOBALS['phpgw']->db;
|
||||||
// $db->lock('phpgw_log');
|
// $db->lock('phpgw_log');
|
||||||
$db->query ("insert into phpgw_log (log_date, log_user, log_app, log_severity) values "
|
$db->query("insert into phpgw_log (log_date, log_user, log_app, log_severity) values "
|
||||||
."('". $GLOBALS['phpgw']->db->to_timestamp(time())
|
."('". $GLOBALS['phpgw']->db->to_timestamp(time())
|
||||||
."','".$GLOBALS['phpgw']->session->account_id
|
."','".$GLOBALS['phpgw']->session->account_id
|
||||||
."','".$GLOBALS['phpgw_info']['flags']['currentapp']."'"
|
."','".$GLOBALS['phpgw_info']['flags']['currentapp']."'"
|
||||||
.",'".$this->severity()."'"
|
.",'".$this->severity()."'"
|
||||||
.")"
|
.")"
|
||||||
,__LINE__,__FILE__);
|
,__LINE__,__FILE__
|
||||||
|
);
|
||||||
|
|
||||||
$log_id = $db->get_last_insert_id('phpgw_log','log_id');
|
$log_id = $db->get_last_insert_id('phpgw_log','log_id');
|
||||||
// $db->query('select max(log_id) as lid from phpgw_log');
|
// $db->query('select max(log_id) as lid from phpgw_log');
|
||||||
@ -124,7 +125,7 @@
|
|||||||
for ($i = 0; $i < count($errorstack); $i++)
|
for ($i = 0; $i < count($errorstack); $i++)
|
||||||
{
|
{
|
||||||
$err = $errorstack[$i];
|
$err = $errorstack[$i];
|
||||||
$db->query ("insert into phpgw_log_msg "
|
$db->query("insert into phpgw_log_msg "
|
||||||
."(Log_msg_log_id, log_msg_seq_no, log_msg_date, log_msg_severity, "
|
."(Log_msg_log_id, log_msg_seq_no, log_msg_date, log_msg_severity, "
|
||||||
."log_msg_code, log_msg_msg, log_msg_parms, log_msg_file, log_msg_line) values "
|
."log_msg_code, log_msg_msg, log_msg_parms, log_msg_file, log_msg_line) values "
|
||||||
."(" . $log_id
|
."(" . $log_id
|
||||||
@ -137,8 +138,9 @@
|
|||||||
.", '". $err->fname . "'"
|
.", '". $err->fname . "'"
|
||||||
.", " . intval($err->line)
|
.", " . intval($err->line)
|
||||||
.")"
|
.")"
|
||||||
,__LINE__,__FILE__);
|
,__LINE__,__FILE__
|
||||||
};
|
);
|
||||||
|
}
|
||||||
unset ($errorstack);
|
unset ($errorstack);
|
||||||
unset ($this->errorstack);
|
unset ($this->errorstack);
|
||||||
$this->errorstack = array();
|
$this->errorstack = array();
|
||||||
@ -200,7 +202,7 @@
|
|||||||
$html .= "\t\t<td>".$err->fname."</td>\n";
|
$html .= "\t\t<td>".$err->fname."</td>\n";
|
||||||
$html .= "\t\t<td>".$err->line."</td>\n";
|
$html .= "\t\t<td>".$err->line."</td>\n";
|
||||||
$html .= "\t</tr>\n";
|
$html .= "\t</tr>\n";
|
||||||
};
|
}
|
||||||
$html .= "</table>\n";
|
$html .= "</table>\n";
|
||||||
$html .= "</center>\n";
|
$html .= "</center>\n";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user