From 286fe80b120f61a9ffb26e1825ae9ef7a1fbfd3b Mon Sep 17 00:00:00 2001 From: simond Date: Tue, 15 Oct 2002 08:25:29 +0000 Subject: [PATCH] Remove isWarning as it's been dropped from PEAR with cvs versions git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3855 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/abook_database.php | 2 +- functions/db_prefs.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/abook_database.php b/functions/abook_database.php index 95288409..cb82f6ff 100644 --- a/functions/abook_database.php +++ b/functions/abook_database.php @@ -92,7 +92,7 @@ class abook_database extends addressbook_backend { $dbh = DB::connect($this->dsn, true); - if (DB::isError($dbh) || DB::isWarning($dbh)) { + if (DB::isError($dbh)) { return $this->set_error(sprintf(_("Database error: %s"), DB::errorMessage($dbh))); } diff --git a/functions/db_prefs.php b/functions/db_prefs.php index 2e2c12e5..1e4a2a72 100644 --- a/functions/db_prefs.php +++ b/functions/db_prefs.php @@ -108,7 +108,7 @@ class dbPrefs { } $dbh = DB::connect($prefs_dsn, true); - if(DB::isError($dbh) || DB::isWarning($dbh)) { + if(DB::isError($dbh)) { $this->error = DB::errorMessage($dbh); return false; } -- 2.25.1