[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/class.log.inc.php, 1.6.4.8
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/class.log.inc.php, 1.6.4.8 |
Date: |
Thu, 15 Jul 2004 06:21:25 +0200 |
Update of /phpgwapi/inc
Modified Files:
Branch: Version-0_9_16-branch
class.log.inc.php
date: 2004/07/15 04:21:25; author: skwashd; state: Exp; lines: +3 -1
Log Message:
fix for bug #8788
=====================================================================
Index: phpgwapi/inc/class.log.inc.php
diff -u phpgwapi/inc/class.log.inc.php:1.6.4.7
phpgwapi/inc/class.log.inc.php:1.6.4.8
--- phpgwapi/inc/class.log.inc.php:1.6.4.7 Tue Feb 10 13:51:18 2004
+++ phpgwapi/inc/class.log.inc.php Thu Jul 15 04:21:25 2004
@@ -174,6 +174,7 @@
function write_error_to_db($err) {
$db = $GLOBALS['phpgw']->db;
+ $db->lock('phpgw_log');
$db->query("insert into phpgw_log (log_date, log_app,
log_account_id, log_account_lid, log_severity, log_file, log_line, log_msg)
values "
. "('" .
$GLOBALS['phpgw']->db->to_timestamp(time()) . "'"
. ",'" .
$db->db_addslashes($GLOBALS['phpgw_info']['flags']['currentapp']) . "'"
@@ -189,6 +190,7 @@
if ( $db->Errno ) {
trigger_error("Failed to log error to database.
DB errno " . $db->Errno . ": message " . $db->Error, E_USER_NOTICE);
}
+ $db->unlock();
}
// I pulled this from the old code, where it's used to display
a fatal error and determinate processing..
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/class.log.inc.php, 1.6.4.8,
nomail <=