From: simond Date: Tue, 15 Oct 2002 08:25:29 +0000 (+0000) Subject: Remove isWarning as it's been dropped from PEAR with cvs versions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=286fe80b120f61a9ffb26e1825ae9ef7a1fbfd3b;p=squirrelmail.git 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 --- 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; }