Remove isWarning as it's been dropped from PEAR with cvs versions
authorsimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 08:25:29 +0000 (08:25 +0000)
committersimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 08:25:29 +0000 (08:25 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3855 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/abook_database.php
functions/db_prefs.php

index 952884091b70fa84c3b3b37ab7d8cf387a0b8ece..cb82f6ffae58ebd8f4e2297c10cf23989b0bf069 100644 (file)
@@ -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)));
         }
index 2e2c12e58ade73051004d26b33a622b50cceb0f7..1e4a2a727c90d7253bb5c5186193f613282732eb 100644 (file)
@@ -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;
         }