|
From: Benjamin C. <bc...@us...> - 2002-03-26 18:40:30
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv11830
Modified Files:
include.php
Log Message:
Add a default error handler for the database object
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -r1.101 -r1.102
--- include.php 20 Mar 2002 20:03:17 -0000 1.101
+++ include.php 26 Mar 2002 18:40:27 -0000 1.102
@@ -51,7 +51,7 @@
$db = DB::Connect($dsn);
$db->setOption('optimize', 'portability');
$db->setFetchMode(DB_FETCHMODE_ASSOC);
-
+$db->setErrorHandling(PEAR_ERROR_CALLBACK, "handle_db_error");
// Set up the configuration variables
$rs = $db->query('select varname, varvalue from '.TBL_CONFIGURATION);
|