Update of /cvsroot/bobs/bobs/inc/templates
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10224/inc/templates
Modified Files:
backup_create_databases.php
Log Message:
Remove those annoying "dba_open failed" messages from bobs.log.
Index: backup_create_databases.php
===================================================================
RCS file: /cvsroot/bobs/bobs/inc/templates/backup_create_databases.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- backup_create_databases.php 26 Mar 2004 21:33:51 -0000 1.5
+++ backup_create_databases.php 19 May 2004 13:57:40 -0000 1.6
@@ -11,7 +11,7 @@
function create ( $db ) {
// check what dba type we should use
- $this->id = dba_open ($db, "n", "db3");
+ $this->id = @dba_open ($db, "n", "db3");
if ( $this->id === FALSE ) {
$this->id = dba_open ($db, "n", "db4");
if ( $this->id === FALSE ) {
@@ -103,7 +103,7 @@
// Now create the directory database
// open the file index db
- $id = dba_open($db, "r", "db3");
+ $id = @dba_open($db, "r", "db3");
if (!$id) {
$id = dba_open($db, "r", "db4");
if (!$id) {
@@ -112,7 +112,7 @@
}
}
// create a new dir database.
- $dir_id = dba_open ('{DIR_DB}', "n", "db3");
+ $dir_id = @dba_open ('{DIR_DB}', "n", "db3");
if (!$dir_id) {
$dir_id = dba_open ('{DIR_DB}', "n", "db4");
if (!$dir_id) {
|